Просмотр исходного кода

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 2 лет назад
Родитель
Сommit
d41cef3799

+ 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