From 0e048af29b82ea547fdd92e52b1aecca2d7b9b17 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 22 Dec 2021 20:01:39 +1030 Subject: [PATCH] fix issue with last tox fix --- custom_components/localtuya/fan.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/custom_components/localtuya/fan.py b/custom_components/localtuya/fan.py index e742481..39cd896 100644 --- a/custom_components/localtuya/fan.py +++ b/custom_components/localtuya/fan.py @@ -117,8 +117,6 @@ class LocaltuyaFan(LocalTuyaEntity, FanEntity): await self._device.set_dp(True, self._dp_id) if percentage is not None: await self.async_set_percentage(percentage) - elif preset_mode is not None: - _LOGGER.debug("Preset_mode not supported yet") else: self.schedule_update_ha_state()