Skip to content

Commit

Permalink
#438 - reset state if date is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
bruxy70 committed Nov 21, 2022
1 parent e8e2655 commit 232bdbd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/garbage_collection/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,8 @@ def update_state(self) -> None:
self._attr_icon = self._icon_tomorrow
else:
self._days = None
self._attr_state = None
self._attr_icon = None


class WeeklyCollection(GarbageCollection):
Expand Down

0 comments on commit 232bdbd

Please sign in to comment.