Skip to content

Commit

Permalink
Update base.py
Browse files Browse the repository at this point in the history
Fix missing sensor updates
  • Loading branch information
BenPru authored Sep 12, 2023
1 parent 2ef45b2 commit 17731cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/luxtronik/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def _handle_coordinator_update(self) -> None:

self._enrich_extra_attributes()

if descr.update_interval is not None:
if descr.update_interval is not None and (self.next_update is None or self.next_update < utcnow()):
self.next_update = utcnow() + descr.update_interval
super()._handle_coordinator_update()

Expand Down

0 comments on commit 17731cf

Please sign in to comment.