浏览代码

Loratap Relay and Zigbee curtain: remove invalid scale of 0

Some PRs slipped through with the `scale: 0` copied from Tuya cloud
docs.

This integration uses a multiplier for scale, not a decimal place
shift like the Tuya cloud uses. This allows temperature scales of 2
that some thermostats use to represent 0.5 degree steps to be
represented.

In any case, unscaled values do not need to include a scale mapping.

Issue noticed in the log attached to issue #1930, though this is not
the device being reported.
Jason Rumney 1 年之前
父节点
当前提交
471991e449

+ 0 - 3
custom_components/tuya_local/devices/loratap_relay.yaml

@@ -32,9 +32,6 @@ secondary_entities:
         range:
           min: 0
           max: 86400
-        mapping:
-          - scale: 0
-            step: 1
         unit: s
   - entity: select
     name: Restart Status

+ 0 - 1
custom_components/tuya_local/devices/loratap_zigbee_curtain.yaml

@@ -24,7 +24,6 @@ primary_entity:
         min: 0
         max: 100
       mapping:
-        - scale: 0
         - step: 10
     - id: 14
       name: light_mode