From 0eaf3a51e3d4f5de84075fd5617e0b25f04008a4 Mon Sep 17 00:00:00 2001 From: xZetsubou Date: Sat, 11 Jan 2025 11:27:22 +0300 Subject: [PATCH] fix(vacuum): error state deprecated --- 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 4b9fffec8..dc67811b9 100644 --- a/custom_components/localtuya/vacuum.py +++ b/custom_components/localtuya/vacuum.py @@ -263,7 +263,7 @@ def status_updated(self): if self.has_config(CONF_FAULT_DP): self._attrs[FAULT] = self.dp_value(CONF_FAULT_DP) if self._attrs[FAULT] != 0: - self._state = STATE_ERROR + self._state = VacuumActivity.ERROR async_setup_entry = partial(async_setup_entry, DOMAIN, LocalTuyaVacuum, flow_schema)