Преглед изворни кода

Formatting change by black.

Black wants to remove some parentheses.
Jason Rumney пре 5 година
родитељ
комит
4f65b8403e
1 измењених фајлова са 1 додато и 1 уклоњено
  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:
         if pwr is None:
             return STATE_UNAVAILABLE
             return STATE_UNAVAILABLE
         else:
         else:
-            return (pwr / 10.0)
+            return pwr / 10.0
 
 
     @property
     @property
     def device_state_attributes(self):
     def device_state_attributes(self):