Skip to content

Commit

Permalink
🧹 improve for vacuum (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Mar 27, 2021
1 parent 69e9599 commit dcfce1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/xiaomi_miot/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ def state(self):
return STATE_DOCKED
elif val in self._prop_status.list_search('Go Charging'):
return STATE_RETURNING
elif val in self._prop_status.list_search('Paused'):
return STATE_PAUSED
elif val in self._prop_status.list_search('Error'):
return STATE_ERROR
return None
Expand Down

0 comments on commit dcfce1d

Please sign in to comment.