From 1b4cbad6bbe20b87df0bd22ce11dce34619c6fd2 Mon Sep 17 00:00:00 2001 From: Alone Date: Thu, 25 Mar 2021 19:03:35 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20fix=20unknown=20state=20for=20va?= =?UTF-8?q?cuum=20(#40=20#42)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/xiaomi_miot/vacuum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/xiaomi_miot/vacuum.py b/custom_components/xiaomi_miot/vacuum.py index 614adca1b..4b5307b1a 100644 --- a/custom_components/xiaomi_miot/vacuum.py +++ b/custom_components/xiaomi_miot/vacuum.py @@ -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',