Procházet zdrojové kódy

fix(fairland_x20_poolheatpump): fix feature flags

Feature flags return "0" and "1" rather than booleans. Convert before use.
Jason Rumney před 2 týdny
rodič
revize
43c14123bb

+ 8 - 0
custom_components/tuya_local/devices/fairland_x20_poolheatpump.yaml

@@ -70,10 +70,18 @@ entities:
         type: string
         optional: true
         name: cool_available
+        mapping:
+          - dps_val: "0"
+            value: false
+          - value: true
       - id: 115
         type: string
         optional: true
         name: boost_available
+        mapping:
+          - dps_val: "0"
+            value: false
+          - value: true
   - entity: sensor
     category: diagnostic
     class: power_factor