Skip to content

Commit

Permalink
Update sensor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ic-dev21 committed Feb 20, 2025
1 parent 5e21ba8 commit c0e3172
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/hilo/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -902,9 +902,7 @@ def _update_next_events(self):
# Sort events by start time
sorted_events = sorted(self._events.values(), key=lambda x: x.preheat_start)

self._next_events = [
event.as_dict() for event in sorted_events
]
self._next_events = [event.as_dict() for event in sorted_events]

# Force an update of the entity
self.async_write_ha_state()
Expand Down

0 comments on commit c0e3172

Please sign in to comment.