Skip to content

Commit

Permalink
🧹 fix unknown state for vacuum (#40 #42)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Mar 25, 2021
1 parent 4aa1f3e commit 1b4cbad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/xiaomi_miot/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def status(self):
def state(self):
if self._prop_status:
val = self._prop_status.from_dict(self._state_attrs)
if val is not None:
if val is None:
pass
elif val in self._prop_status.list_search(
'Cleaning', 'Sweeping', 'Mopping', 'Sweeping and Mopping',
Expand Down

0 comments on commit 1b4cbad

Please sign in to comment.