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

Himox H06: remove tuya API style scale/step/range info

Tuya Cloud API scale means number of decimal places to shift.
tuya-local convention for scale is as a multiplier.
No scale and step 1 are the default, so no need to include them.
range is not needed on read-only values, as we never need to limit them.
Jason Rumney 3 лет назад
Родитель
Сommit
9a0de6fda8
1 измененных файлов с 0 добавлено и 10 удалено
  1. 0 10
      custom_components/tuya_local/devices/himox_h06_purifier.yaml

+ 0 - 10
custom_components/tuya_local/devices/himox_h06_purifier.yaml

@@ -26,11 +26,6 @@ secondary_entities:
         name: sensor
         name: sensor
         readonly: true
         readonly: true
         unit: "%"
         unit: "%"
-        range:
-          min: 0
-          max: 100
-        scale: 0
-        step: 1
   - entity: light
   - entity: light
     name: AQ Indicator
     name: AQ Indicator
     category: config
     category: config
@@ -70,11 +65,6 @@ secondary_entities:
         name: sensor
         name: sensor
         readonly: true
         readonly: true
         unit: "min"
         unit: "min"
-        range:
-          min: 0
-          max: 480
-        scale: 0
-        step: 1
   - entity: sensor
   - entity: sensor
     name: Air Quality
     name: Air Quality
     dps:
     dps: