Skip to content

Commit

Permalink
fix deprecated device_state_attributes
Browse files Browse the repository at this point in the history
Replace `device_state_attributes` with `extra_state_attributes`
This fixes rospogrigio#662
  • Loading branch information
chompy18 committed Dec 16, 2021
1 parent 76b86eb commit bfba2d7
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 bfba2d7

Please sign in to comment.