Parcourir la source

fix (hysen_hy08we2_thermostat): scale calibration properly

Issue #4457, supported by inconsistencies in the info on #104
Jason Rumney il y a 1 semaine
Parent
commit
0d85278af4

+ 4 - 2
custom_components/tuya_local/devices/hysen_hy08we2_thermostat.yaml

@@ -150,8 +150,10 @@ entities:
         name: value
         name: value
         unit: °
         unit: °
         range:
         range:
-          min: -9
-          max: 9
+          min: -90
+          max: 90
+        mapping:
+          - scale: 10
   - entity: number
   - entity: number
     name: Calibration swing internal
     name: Calibration swing internal
     category: config
     category: config