Fix Shelly sleeping Gen2 - update data upon initialize (#86544)

pull/85782/head
Shay Levy 2023-01-24 18:38:27 +02:00 committed by GitHub
parent c3c290b576
commit 0d3bf0e911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -510,6 +510,7 @@ class ShellyRpcCoordinator(ShellyCoordinatorBase[RpcDevice]):
"""Handle device update."""
if update_type is UpdateType.INITIALIZED:
self.hass.async_create_task(self._async_connected())
self.async_set_updated_data(None)
elif update_type is UpdateType.DISCONNECTED:
self.hass.async_create_task(self._async_disconnected())
elif update_type is UpdateType.STATUS: