updated apps

This commit is contained in:
2026-07-14 23:57:03 -04:00
parent 6cc7212cef
commit 010e828e9c
797 changed files with 45153 additions and 4246 deletions
@@ -119,7 +119,7 @@ class LinearStrategy(PowerCalculationStrategyInterface):
def is_enabled(self, entity_state: State) -> bool:
"""Return if this strategy is enabled based on entity state."""
return not (self._source_entity.domain == media_player.DOMAIN and entity_state.state is not STATE_PLAYING)
return not (self._source_entity.domain == media_player.DOMAIN and entity_state.state != STATE_PLAYING)
def get_min_calibrate(self, value: int) -> tuple[int, float]:
"""Get closest lower value from calibration table."""
@@ -176,7 +176,7 @@ class LinearStrategy(PowerCalculationStrategyInterface):
return self.get_value_from_attribute(entity_state)
value_entity = self.get_initialized_value_entity()
if value_entity.entity_id is not self._source_entity.entity_id:
if value_entity.entity_id != self._source_entity.entity_id:
# If the value entity is different from the source entity, we need to fetch the state of the value entity
entity_state = self._hass.states.get(value_entity.entity_id)
if not entity_state: