From 6b260391f067a42a294746a83a5cd054de8dbcc3 Mon Sep 17 00:00:00 2001
From: bruxy70 <vasek.chaloupka@hotmail.com>
Date: Tue, 8 Feb 2022 23:21:42 +0100
Subject: [PATCH] Fixing translations

---
 custom_components/garbage_collection/sensor.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/custom_components/garbage_collection/sensor.py b/custom_components/garbage_collection/sensor.py
index 88ae790..4035904 100644
--- a/custom_components/garbage_collection/sensor.py
+++ b/custom_components/garbage_collection/sensor.py
@@ -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