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

fix(intaflo_intabloc_airwaterheatpump): use kPa for pressures

HA does not support MPa as a unit, so instead of following the Tuya
app to scale these into MPa, leave them as kPa.

PR #5237
Jason Rumney 1 месяц назад
Родитель
Сommit
7d153fa6a1

+ 2 - 6
custom_components/tuya_local/devices/intaflo_intabloc_airwaterheatpump.yaml

@@ -312,10 +312,8 @@ entities:
       - id: 114
         type: integer
         name: sensor
-        unit: MPa
+        unit: kPa
         class: measurement
-        mapping:
-          - scale: 1000
   - entity: sensor
     name: Low pressure
     class: pressure
@@ -324,10 +322,8 @@ entities:
       - id: 115
         type: integer
         name: sensor
-        unit: MPa
+        unit: kPa
         class: measurement
-        mapping:
-          - scale: 1000
   - entity: sensor
     name: Compressor frequency
     class: frequency