Explorar o código

cover devices: invert should be inside a mapping.

After previous changes to remove reverse dps from covers, some configs
incorrectly ended up with the invert setting directly under the dps
instead of in a mapping (where config options that change the value
belong).

This may have caused issue #715
Jason Rumney %!s(int64=2) %!d(string=hai) anos
pai
achega
d30e457e7e

+ 2 - 1
custom_components/tuya_local/devices/benexmart_blind_motor.yaml

@@ -19,7 +19,8 @@ primary_entity:
       range:
         min: 0
         max: 100
-      invert: true
+      mapping:
+        - invert: true
 secondary_entities:
     - entity: switch
       category: config

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

@@ -21,7 +21,8 @@ primary_entity:
       range:
         min: 0
         max: 100
-      invert: true
+      mapping:
+        - invert: true
     - id: 105
       type: boolean
       name: curtain_hand
@@ -79,7 +80,8 @@ primary_entity:
       range:
         min: 0
         max: 100
-      invert: true
+      mapping:
+        - invert: true
 secondary_entities:
   - entity: select
     name: Border setting

+ 2 - 1
custom_components/tuya_local/devices/wistar_roller_blind_nopos.yaml

@@ -21,7 +21,8 @@ primary_entity:
       range:
         min: 0
         max: 100
-      invert: true
+      mapping:
+        - invert: true
     - id: 105
       type: boolean
       name: curtain_hand

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

@@ -24,14 +24,16 @@ primary_entity:
       range:
         min: 0
         max: 100
-      invert: true
+      mapping:
+        - invert: true
     - id: 3
       name: current_position
       type: integer
       range:
         min: 0
         max: 100
-      invert: true
+      mapping:
+        - invert: true
     - id: 7
       name: unreliable_action
       type: string