Ver Fonte

Fan: fix last change

Jason Rumney há 1 ano atrás
pai
commit
2d1753274b
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      custom_components/tuya_local/fan.py

+ 1 - 1
custom_components/tuya_local/fan.py

@@ -121,7 +121,7 @@ class TuyaLocalFan(TuyaLocalEntity, FanEntity):
             await self._switch_dps.async_set_value(self._device, False)
         elif (
                 self._speed_dps and self._speed_dps.range(self._device)
-                and _speed_dps.range(self._device)[0] == 0
+                and self._speed_dps.range(self._device)[0] == 0
         ):
             await self._speed_dps.async_set_value(self._device, 0)
         else: