Skip to content

Commit

Permalink
Fixing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
bruxy70 committed Feb 8, 2022
1 parent 9265c9e commit 6b26039
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/garbage_collection/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ def extra_state_attributes(self):
res[const.ATTR_DAYS] = self._days
res[const.ATTR_LAST_COLLECTION] = self.last_collection
res[const.ATTR_LAST_UPDATED] = self._last_updated
# Needed for translations to work
res[ATTR_DEVICE_CLASS] = self.DEVICE_CLASS
return res

Expand Down

0 comments on commit 6b26039

Please sign in to comment.