fix issue with last tox fix

This commit is contained in:
Tim
2021-12-22 20:01:39 +10:30
parent a25bf75a4d
commit 0e048af29b

View File

@@ -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()