Skip to content

Commit e8529d3

Browse files
authored
Merge pull request #663 from jsBlackBelt/master
fix deprecated device_state_attributes
2 parents 4443713 + 8e1c7ef commit e8529d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/localtuya/switch.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def is_on(self):
4848
return self._state
4949

5050
@property
51-
def device_state_attributes(self):
51+
def extra_state_attributes(self):
5252
"""Return device state attributes."""
5353
attrs = {}
5454
if self.has_config(CONF_CURRENT):

0 commit comments

Comments
 (0)