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

fix: use scale of 1 instead of 0 to avoid divide-by-zero issue

Alex Maras 3 лет назад
Родитель
Сommit
d3f36ca8a3

+ 2 - 2
custom_components/tuya_local/devices/catit_pixi_smart_fountain.yaml

@@ -29,7 +29,7 @@ secondary_entities:
           min: 0
           max: 43200
         mapping:
-          - scale: 0
+          - scale: 1
             step: 1
         unit: min
   - entity: switch
@@ -52,6 +52,6 @@ secondary_entities:
           min: 0
           max: 10800
         mapping:
-          - scale: 0
+          - scale: 1
             step: 1
         unit: s