Skip to content

Commit

Permalink
change state_attribute method to fix deprecation message.
Browse files Browse the repository at this point in the history
  • Loading branch information
TekniskSupport committed Dec 15, 2021
1 parent f5059fe commit a95ca96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/resrobot/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def state(self):
return None

@property
def device_state_attributes(self):
def extra_state_attributes(self):
"""Return the state attributes of the monitored installation."""
if self._attributes is not None:
return self._attributes
Expand Down Expand Up @@ -268,7 +268,7 @@ def state(self):
return None

@property
def device_state_attributes(self):
def extra_state_attributes(self):
"""Return the state attributes of the monitored installation."""
if self._attributes is not None:
return self._attributes
Expand Down

0 comments on commit a95ca96

Please sign in to comment.