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

Afyeev EV chargers: don't scale temperature

Original submitted config was without dp info, so the assumption when
seeing `scale: 1` was it had been copied from iot.tuya.com, because
including it implies scaling is needed.

But it turns out scaling was not needed, and that was redundant.

Issue #2108
Jason Rumney 1 год назад
Родитель
Сommit
6f90fba00f

+ 1 - 3
custom_components/tuya_local/devices/afyeev_16a_evcharger.yaml

@@ -145,10 +145,8 @@ secondary_entities:
       - id: 24
         type: integer
         name: sensor
-        unit: °C
+        unit: C
         class: measurement
-        mapping:
-          - scale: 1
   - entity: sensor
     name: Last charge
     dps:

+ 0 - 2
custom_components/tuya_local/devices/afyeev_evcharger.yaml

@@ -173,8 +173,6 @@ secondary_entities:
         name: sensor
         unit: C
         class: measurement
-        mapping:
-          - scale: 10
   - entity: sensor
     name: Last charge
     dps: