Explorar o código

Further lint changes.

Hopefully nothing else hiding behind these
Jason Rumney hai 1 ano
pai
achega
f7bfe6d905
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 2 1
      custom_components/tuya_local/fan.py
  2. 0 1
      util/duplicates.py

+ 2 - 1
custom_components/tuya_local/fan.py

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

+ 0 - 1
util/duplicates.py

@@ -35,7 +35,6 @@ def representation(dp):
 
 
 def main():
-
     for filename in sys.argv[1:]:
         if filename.endswith(".yaml"):
             filename = filename[:-5]