Skip to content

Commit

Permalink
fix(vacuum): fix pasue state in device has pause DP
Browse files Browse the repository at this point in the history
  • Loading branch information
xZetsubou authored Jan 27, 2025
1 parent 3861f9e commit 0c3a89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/localtuya/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def status_updated(self):
elif state_value in self._returning_status_list:
self._state = VacuumActivity.RETURNING
elif state_value in [self._config[CONF_PAUSED_STATE], "pause"] or (
not state_value and self.dp_value(CONF_PAUSE_DP) is True
self.dp_value(CONF_PAUSE_DP) is True
):
self._state = VacuumActivity.PAUSED
else:
Expand Down

0 comments on commit 0c3a89c

Please sign in to comment.