329 files
This commit is contained in:
1 parent
0df89406fa
commit
7afe7add1d
330 files changed
+13098
-5942
No files matched your search
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
@@ -1,5 +1,3 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from abc import abstractmethod
|
||||
from collections.abc import Callable
|
||||
from datetime import datetime, timedelta
|
||||
@@ -113,7 +111,7 @@ from custom_components.powercalc.sensors.abstract import (
|
||||
generate_power_sensor_entity_id,
|
||||
generate_power_sensor_name,
|
||||
)
|
||||
from custom_components.powercalc.sensors.energy import EnergySensor, VirtualEnergySensor
|
||||
from custom_components.powercalc.sensors.energy import EnergySensor, VirtualEnergySensor, VirtualStandbyEnergySensor
|
||||
from custom_components.powercalc.sensors.energy_related import create_energy_related_sensors
|
||||
from custom_components.powercalc.sensors.power import PowerSensor
|
||||
from custom_components.powercalc.unit import (
|
||||
@@ -235,6 +233,7 @@ def filter_entity_list_by_class(
|
||||
filter_list = default_filters.copy() if default_filters else []
|
||||
filter_list.append(lambda elm: not isinstance(elm, GroupedSensor))
|
||||
filter_list.append(lambda elm: isinstance(elm, class_name))
|
||||
filter_list.append(lambda elm: not isinstance(elm, VirtualStandbyEnergySensor))
|
||||
return {
|
||||
x.entity_id
|
||||
for x in filter(
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from decimal import Decimal
|
||||
import logging
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from decimal import Decimal
|
||||
import logging
|
||||
from typing import cast
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from enum import StrEnum
|
||||
import logging
|
||||
|
||||
|
||||
Reference in new issue
Block a user