Skip to content

Commit ae58e12

Browse files
authored
Merge pull request #100 from iprak/thermostat_not_updating_fixes
fix: address Thermostat not updating
2 parents d1cb48b + ed98fe2 commit ae58e12

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

custom_components/sensi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
8484
return unload_ok
8585

8686

87-
class SensiEntity(CoordinatorEntity):
87+
class SensiEntity(CoordinatorEntity[SensiUpdateCoordinator]):
8888
"""Representation of a Sensi entity."""
8989

9090
_attr_has_entity_name = True

custom_components/sensi/climate.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ def _handle_coordinator_update(self) -> None:
309309
asyncio.run_coroutine_threadsafe(
310310
self._async_on_device_updated(), self.hass.loop
311311
)
312+
super()._handle_coordinator_update()
312313

313314
async def _async_on_device_updated(self) -> None:
314315
"""Device state update callback."""

custom_components/sensi/coordinator.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,9 @@ def parse_thermostat_mode_action(self, state) -> None:
266266
# operating_mode=heat, current_operating_mode=heat
267267
# demand_status={'cool_stage': None, 'heat_stage': 1, 'aux_stage': None, 'heat': 100, 'fan': 0, 'cool': 0, 'aux': 0, 'last': 'heat', 'last_start': 1706461614}
268268

269+
# Heating (multistage) where heat can be 50:
270+
# demand_status={'cool_stage': None, 'heat_stage': 1, 'aux_stage': None, 'heat': 50, 'fan': 0, 'cool': 0, 'aux': 0, 'last': 'heat', 'last_start': 1706461614}
271+
269272
# idle:
270273
# operating_mode=heat, current_operating_mode=heat
271274
# demand_status={'cool_stage': None, 'heat_stage': None, 'aux_stage': None, 'heat': 0, 'fan': 0, 'cool': 0, 'aux': 0, 'last': 'heat', 'last_start': None}

0 commit comments

Comments
 (0)