diff --git a/custom_components/solar_optimizer/sensor.py b/custom_components/solar_optimizer/sensor.py index 5e3fc3d..e5c7d04 100644 --- a/custom_components/solar_optimizer/sensor.py +++ b/custom_components/solar_optimizer/sensor.py @@ -57,7 +57,7 @@ def _handle_coordinator_update(self) -> None: if ( not self.coordinator or not self.coordinator.data - or not (value := self.coordinator.data.get(self.idx)) + or (value := self.coordinator.data.get(self.idx)) == None ): _LOGGER.debug("No coordinator found or no data...") return