From 0c3a89cdd456ac126867ec1c9eee946aeaf38ce3 Mon Sep 17 00:00:00 2001 From: Bander <46300268+xZetsubou@users.noreply.github.com> Date: Tue, 28 Jan 2025 01:14:30 +0300 Subject: [PATCH] fix(vacuum): fix pasue state in device has pause DP --- custom_components/localtuya/vacuum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/localtuya/vacuum.py b/custom_components/localtuya/vacuum.py index 7b108db3d..11682b002 100644 --- a/custom_components/localtuya/vacuum.py +++ b/custom_components/localtuya/vacuum.py @@ -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: