Fix fan extra attributes

This commit is contained in:
Vincent Le Bourlot
2022-06-09 10:44:36 +02:00
committed by GitHub
parent d10928ecca
commit 93bc998342

View File

@ -114,7 +114,7 @@ class VeSyncFanHA(VeSyncDevice, FanEntity):
def extra_state_attributes(self):
"""Return the state attributes of the fan."""
attr = {}
for k, v in self.smarthumidifier.details.items():
for k, v in self.smartfan.details.items():
if k in VS_TO_HA_ATTRIBUTES:
attr[VS_TO_HA_ATTRIBUTES[k]] = v
elif k in self.state_attributes: