From 0d3bf0e911bac18b984939a931336b9fbb564eb5 Mon Sep 17 00:00:00 2001 From: Shay Levy Date: Tue, 24 Jan 2023 18:38:27 +0200 Subject: [PATCH] Fix Shelly sleeping Gen2 - update data upon initialize (#86544) --- homeassistant/components/shelly/coordinator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/shelly/coordinator.py b/homeassistant/components/shelly/coordinator.py index 84964070686..37f1461f62f 100644 --- a/homeassistant/components/shelly/coordinator.py +++ b/homeassistant/components/shelly/coordinator.py @@ -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: