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

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 година
родитељ
комит
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