mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix lingering timer in SinopeTechnologiesThermostat (#91681)
This commit is contained in:
parent
4e0b8a7363
commit
dace1add1f
@ -536,8 +536,10 @@ class SinopeTechnologiesThermostat(Thermostat):
|
||||
async def async_added_to_hass(self) -> None:
|
||||
"""Run when about to be added to Hass."""
|
||||
await super().async_added_to_hass()
|
||||
async_track_time_interval(
|
||||
self.hass, self._async_update_time, self.update_time_interval
|
||||
self.async_on_remove(
|
||||
async_track_time_interval(
|
||||
self.hass, self._async_update_time, self.update_time_interval
|
||||
)
|
||||
)
|
||||
self._async_update_time()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user