Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram van Dartel committed Jan 14, 2024
1 parent 5c955c7 commit 26b3c75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/afvalwijzer/sensor_custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _update_attributes_date(self, collection_date):

def _update_attributes_non_date(self, value):
self._state = str(value)
self._days_until_collection_date = self._default_label
self._days_until_collection_date = None
self._device_class = None

def _handle_value_error(self):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/afvalwijzer/sensor_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def _update_attributes_date(self, collection_date):

def _update_attributes_non_date(self, value):
self._state = str(value)
self._days_until_collection_date = self._default_label
self._days_until_collection_date = None
self._device_class = None

def _update_collection_date_flags(self, collection_date_delta):
Expand Down

0 comments on commit 26b3c75

Please sign in to comment.