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

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

Alex Maras пре 3 година
родитељ
комит
d3f36ca8a3
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      custom_components/tuya_local/devices/catit_pixi_smart_fountain.yaml

+ 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