Bläddra i källkod

fix(saswell_t29utk_thermostat): temp unit from device is lowercase

Issue #5081, logs from #45 also agree, the device info there came from
Query Device Properties, which generally returns cloud rather than
local details.
Jason Rumney 1 vecka sedan
förälder
incheckning
b890b41936

+ 5 - 6
custom_components/tuya_local/devices/saswell_t29utk_thermostat.yaml

@@ -18,7 +18,7 @@ entities:
             step: 5
             step: 5
             constraint: temperature_unit
             constraint: temperature_unit
             conditions:
             conditions:
-              - dps_val: "F"
+              - dps_val: f
                 step: 10
                 step: 10
                 range:
                 range:
                   min: 410
                   min: 410
@@ -61,10 +61,9 @@ entities:
         name: temperature_unit
         name: temperature_unit
         type: string
         type: string
         mapping:
         mapping:
-          - dps_val: F
+          - dps_val: f
             value: F
             value: F
-          - dps_val: C
-            value: C
+          - value: C
       - id: 101
       - id: 101
         name: preset_mode
         name: preset_mode
         type: boolean
         type: boolean
@@ -135,9 +134,9 @@ entities:
         name: option
         name: option
         type: string
         type: string
         mapping:
         mapping:
-          - dps_val: F
+          - dps_val: f
             value: fahrenheit
             value: fahrenheit
-          - dps_val: C
+          - dps_val: c
             value: celsius
             value: celsius
   - entity: select
   - entity: select
     name: Configuration
     name: Configuration