Переглянути джерело

Use correct Unicode character for DEGREE SIGN

Relative temperatures cannot be labelled with the C and F shortcuts
that translate to the actual unit constants in code, as conversion
would mess them up due to the offset between 0 points of C and F.

So the general degree sign needs to be used instead. It is almost
indistinguishable visually from superscript 0, which was used in
some places due to a convenient keyboard shortcut for inserting it.
Jason Rumney 1 рік тому
батько
коміт
7bc93365d2

+ 1 - 1
custom_components/tuya_local/devices/beca_bhp6000_thermostat_c.yaml

@@ -2,7 +2,7 @@ name: Thermostat
 products:
   - id: drwezxukumr9ohuh
     manufacturer: Beca
-    model: BHP-6000 (C)
+    model: BHP-6000 (°C)
 entities:
   - entity: climate
     translation_only_key: thermostat

+ 1 - 1
custom_components/tuya_local/devices/beca_bhp6000_thermostat_f.yaml

@@ -2,7 +2,7 @@ name: Thermostat
 products:
   - id: drwezxukumr9ohuh
     manufacturer: Beca
-    model: BHP-6000 (F)
+    model: BHP-6000 (°F)
 legacy_type: beca_bhp6000_thermostat
 entities:
   - entity: climate

+ 1 - 1
custom_components/tuya_local/devices/beca_bhp6000_thermostat_mapped.yaml

@@ -2,7 +2,7 @@ name: Thermostat
 products:
   - id: drwezxukumr9ohuh
     manufacturer: Beca
-    model: BHP-6000 (mapped C)
+    model: BHP-6000 (mapped °C)
 entities:
   - entity: climate
     translation_only_key: thermostat

+ 3 - 3
custom_components/tuya_local/devices/beok_tcb38_thermostat.yaml

@@ -79,7 +79,7 @@ entities:
       - id: 20
         type: integer
         name: value
-        unit: 
+        unit: °
         range:
           min: -95
           max: 95
@@ -190,7 +190,7 @@ entities:
       - id: 103
         type: integer
         name: value
-        unit: 
+        unit: °
         range:
           min: 5
           max: 30
@@ -205,7 +205,7 @@ entities:
       - id: 104
         type: integer
         name: value
-        unit: 
+        unit: °
         range:
           min: 1
           max: 9

+ 1 - 1
custom_components/tuya_local/devices/earu_k6h3aw_thermostat.yaml

@@ -67,7 +67,7 @@ entities:
       - id: 27
         type: integer
         name: value
-        unit: 
+        unit: °
         range:
           min: -9
           max: 9

+ 1 - 1
custom_components/tuya_local/devices/heatstorm_dh100twi_heater.yaml

@@ -172,7 +172,7 @@ entities:
         type: integer
         optional: true
         name: value
-        unit: 
+        unit: °
         range:
           min: -5
           max: 5

+ 3 - 3
custom_components/tuya_local/devices/hysen_hy101rf_thermostat.yaml

@@ -165,7 +165,7 @@ entities:
       - id: 109
         type: integer
         name: value
-        unit: 
+        unit: °
         range:
           min: -180
           max: 180
@@ -179,7 +179,7 @@ entities:
       - id: 110
         type: integer
         name: value
-        unit: 
+        unit: °
         range:
           min: 1
           max: 180
@@ -193,7 +193,7 @@ entities:
       - id: 111
         type: integer
         name: value
-        unit: 
+        unit: °
         range:
           min: 1
           max: 18

+ 1 - 1
custom_components/tuya_local/devices/plikc_neve_thermostat.yaml

@@ -219,7 +219,7 @@ entities:
         type: integer
         optional: true
         name: value
-        unit: 
+        unit: °
         range:
           min: 2
           max: 20