From ab29211e60ff5ba7e04031b57d8f9d341fba6a80 Mon Sep 17 00:00:00 2001 From: Artem Poliukhovych Date: Mon, 10 Jan 2022 17:55:27 +0200 Subject: [PATCH] Remove call to dummy command --- custom_components/xiaomi_viomi/vacuum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/xiaomi_viomi/vacuum.py b/custom_components/xiaomi_viomi/vacuum.py index 92364db..9a70d69 100644 --- a/custom_components/xiaomi_viomi/vacuum.py +++ b/custom_components/xiaomi_viomi/vacuum.py @@ -230,7 +230,7 @@ def update(self): state = self._get_device_status() self.vacuum_state = state - self._fan_speeds = state.fan_speed_presets() + self._fan_speeds = {x.name: x.value for x in list(ViomiVacuumSpeed)} self._fan_speeds_reverse = {v: k for k, v in self._fan_speeds.items()} self.consumable_state = self._device.consumable_status()