Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
Replace deprecated device_state_attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
pooyashahidi authored Dec 19, 2021
1 parent b4cc1e7 commit 5acc397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/xiaomi_vacuum/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def fan_speed_list(self):
return list(self._fan_speeds_reverse)[1:]

@property
def device_state_attributes(self):
def extra_state_attributes(self):
"""Return the specific state attributes of this vacuum cleaner."""
if self.vacuum_state is not None:
return {
Expand Down

0 comments on commit 5acc397

Please sign in to comment.