Explorar o código

Fan: fix last change

Jason Rumney hai 1 ano
pai
achega
2d1753274b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: