Fix speed variable error

This commit is contained in:
Tim
2021-11-10 06:59:58 +10:30
committed by GitHub
parent c8e660dfac
commit c99a93bd6c

View File

@@ -109,7 +109,7 @@ class LocaltuyaFan(LocalTuyaEntity, FanEntity):
_LOGGER.debug("Fan async_turn_on")
await self._device.set_dp(True, self._dp_id)
if percentage is not None:
await self.async_set_percentage(speed)
await self.async_set_percentage(percentage)
else:
self.schedule_update_ha_state()