Explorar o código

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 %!s(int64=2) %!d(string=hai) anos
pai
achega
d41cef3799

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

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