소스 검색

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