瀏覽代碼

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:
             return STATE_UNAVAILABLE
         else:
-            return (pwr / 10.0)
+            return pwr / 10.0
 
     @property
     def device_state_attributes(self):