Skip to content

Commit

Permalink
Merge pull request #43 from jmcollin78/issue_28-set_to_0
Browse files Browse the repository at this point in the history
FIX set to zero sensor when no solar power is available
  • Loading branch information
jmcollin78 authored Jul 15, 2024
2 parents 1d58123 + 2d06d35 commit 77672d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/solar_optimizer/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77672d0

Please sign in to comment.