429 files

This commit is contained in:
Home Assistant Version Control committed 2026-08-30 02:43:31 +00:00
1 parent 472c19bceb
commit 963cce81a7
566 files changed
+50311 -47616

No files matched your search

@@ -1,6 +1,5 @@
from decimal import Decimal
from homeassistant.components import lawn_mower, vacuum
from homeassistant.core import State
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.event import TrackTemplate
@@ -23,11 +22,6 @@ CONFIG_SCHEMA = vol.Schema(
},
)
STATE_BASED_ENTITY_DOMAINS = [
vacuum.DOMAIN,
lawn_mower.DOMAIN,
]
class FixedStrategy(PowerCalculationStrategyInterface):
def __init__(
@@ -68,12 +62,6 @@ class FixedStrategy(PowerCalculationStrategyInterface):
"fixed_mandatory",
)
if self._source_entity.domain in STATE_BASED_ENTITY_DOMAINS and self._per_state_power is None:
raise StrategyConfigurationError(
"This entity can only work with 'states_power' not 'power'",
"fixed_states_power_only",
)
def get_entities_to_track(self) -> list[str | TrackTemplate]:
"""Return entities that should be tracked."""
track_templates: list[str | TrackTemplate] = []