Skip to content

Commit

Permalink
Merge pull request #663 from jsBlackBelt/master
Browse files Browse the repository at this point in the history
fix deprecated device_state_attributes
  • Loading branch information
rospogrigio committed Jan 2, 2022
2 parents 4443713 + 8e1c7ef commit e8529d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/localtuya/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def is_on(self):
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):
Expand Down

0 comments on commit e8529d3

Please sign in to comment.