Fix switch name attribute for thinkingcleaner (#55730)

This commit is contained in:
Joshi
2021-09-06 21:03:46 +02:00
committed by GitHub
parent 12b1f87b35
commit 0533a9c714

View File

@@ -80,7 +80,7 @@ class ThinkingCleanerSwitch(SwitchEntity):
self.last_lock_time = None
self.graceful_state = False
self._attr_name = f"{tc_object} {description.name}"
self._attr_name = f"{tc_object.name} {description.name}"
def lock_update(self):
"""Lock the update since TC clean takes some time to update."""