Merge pull request #663 from jsBlackBelt/master

fix deprecated device_state_attributes
This commit is contained in:
rospogrigio
2022-01-02 13:29:40 +01:00
committed by GitHub

View File

@@ -48,7 +48,7 @@ class LocaltuyaSwitch(LocalTuyaEntity, SwitchEntity):
return self._state
@property
def device_state_attributes(self):
def extra_state_attributes(self):
"""Return device state attributes."""
attrs = {}
if self.has_config(CONF_CURRENT):