瀏覽代碼

ASC circuit breaker: fix scale of countdown

scale of 0 will cause errors that prevent the countdown from appearing.
In any case, second ressolution timers are misleading, the official app only
lets you set 1 hour precision, but 1 minute resolution should be achievable.

Issue #719
Jason Rumney 3 年之前
父節點
當前提交
d41cef3799
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      custom_components/tuya_local/devices/asc_wifi_circuit_breaker.yaml

+ 3 - 3
custom_components/tuya_local/devices/asc_wifi_circuit_breaker.yaml

@@ -20,9 +20,9 @@ secondary_entities:
           min: 0
           max: 86400
         mapping:
-          - scale: 0
-            step: 1
-        unit: s
+          - scale: 60
+            step: 60
+        unit: min
   - entity: sensor
     name: Current
     class: current