Sfoglia il codice sorgente

Formatting change by black.

Black wants to remove some parentheses.
Jason Rumney 5 anni fa
parent
commit
4f65b8403e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      custom_components/tuya_local/kogan_socket/switch.py

+ 1 - 1
custom_components/tuya_local/kogan_socket/switch.py

@@ -72,7 +72,7 @@ class KoganSocketSwitch(SwitchEntity):
         if pwr is None:
             return STATE_UNAVAILABLE
         else:
-            return (pwr / 10.0)
+            return pwr / 10.0
 
     @property
     def device_state_attributes(self):