mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Fix Shelly sleeping Gen2 - update data upon initialize (#86544)
This commit is contained in:
parent
c3c290b576
commit
0d3bf0e911
@ -510,6 +510,7 @@ class ShellyRpcCoordinator(ShellyCoordinatorBase[RpcDevice]):
|
|||||||
"""Handle device update."""
|
"""Handle device update."""
|
||||||
if update_type is UpdateType.INITIALIZED:
|
if update_type is UpdateType.INITIALIZED:
|
||||||
self.hass.async_create_task(self._async_connected())
|
self.hass.async_create_task(self._async_connected())
|
||||||
|
self.async_set_updated_data(None)
|
||||||
elif update_type is UpdateType.DISCONNECTED:
|
elif update_type is UpdateType.DISCONNECTED:
|
||||||
self.hass.async_create_task(self._async_disconnected())
|
self.hass.async_create_task(self._async_disconnected())
|
||||||
elif update_type is UpdateType.STATUS:
|
elif update_type is UpdateType.STATUS:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user