Skip to content

Commit

Permalink
Rename deprecated device_state_attributes to extra_state_attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Dec 18, 2021
1 parent 5bf2cbc commit 8ef70a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions custom_components/xiaomi_miio_airpurifier/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ def available(self):
return self._available

@property
def device_state_attributes(self):
"""Return the state attributes of the device."""
def extra_state_attributes(self):
"""Return the extra state attributes of the device."""
return self._state_attrs

@property
Expand Down
4 changes: 2 additions & 2 deletions custom_components/xiaomi_miio_airpurifier/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -1259,8 +1259,8 @@ def available(self):
return self._available

@property
def device_state_attributes(self):
"""Return the state attributes of the device."""
def extra_state_attributes(self):
"""Return the extra state attributes of the device."""
return self._state_attrs

@property
Expand Down

0 comments on commit 8ef70a7

Please sign in to comment.