From acfb68e8df839bad3b6cdd22f80782cff9140700 Mon Sep 17 00:00:00 2001 From: Tijs Verkoyen Date: Fri, 13 Jan 2023 13:07:37 +0100 Subject: [PATCH] Trigger state write --- custom_components/fusion_solar/fusion_solar/power_entity.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_components/fusion_solar/fusion_solar/power_entity.py b/custom_components/fusion_solar/fusion_solar/power_entity.py index 6a75d2d..5839433 100644 --- a/custom_components/fusion_solar/fusion_solar/power_entity.py +++ b/custom_components/fusion_solar/fusion_solar/power_entity.py @@ -72,6 +72,8 @@ def _handle_coordinator_update(self): else: self._state = float(self.coordinator.data[self._data_name][self._attribute]) + self.async_write_ha_state() + class FusionSolarPowerEntityRealtime(FusionSolarPowerEntity): pass