Skip to content

Commit

Permalink
Temperature unit selects: hassfest requires lower case translation keys
Browse files Browse the repository at this point in the history
Convert Celsius and Fahrenheit states to lower case to match the
hassfest expectation.  This is undocumented and does not really make
sense for state values, which can be anything, but going with the flow
here.

Issue #1579
  • Loading branch information
make-all committed Mar 2, 2024
1 parent f84eb00 commit 4e9cb5c
Show file tree
Hide file tree
Showing 83 changed files with 170 additions and 170 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ secondary_entities:
name: option
mapping:
- dps_val: c
value: Celsius
value: celsius
- dps_val: f
value: Fahrenheit
value: fahrenheit
- entity: light
name: Flame
dps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,6 @@ secondary_entities:
name: option
mapping:
- dps_val: false
value: Celsius
value: celsius
- dps_val: true
value: Fahrenheit
value: fahrenheit
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ secondary_entities:
name: option
mapping:
- dps_val: c
value: Celsius
value: celsius
- dps_val: f
value: Fahrenheit
value: fahrenheit
- entity: number
name: Temperature hysteresis
category: config
Expand Down
4 changes: 2 additions & 2 deletions custom_components/tuya_local/devices/becool_heatpump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,6 @@ secondary_entities:
name: option
mapping:
- dps_val: true
value: "Fahrenheit"
value: fahrenheit
- dps_val: false
value: "Celsius"
value: celsius
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ secondary_entities:
name: option
mapping:
- dps_val: c
value: Celsius
value: celsius
- dps_val: f
value: Fahrenheit
value: fahrenheit
- entity: number
name: Maximum temperature
category: config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ secondary_entities:
name: option
mapping:
- dps_val: c
value: Celsius
value: celsius
- dps_val: f
value: Fahrenheit
value: fahrenheit
- entity: select
name: Schedule
category: config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,9 @@ secondary_entities:
optional: true
mapping:
- dps_val: c
value: Celsius
value: celsius
- dps_val: f
value: Fahrenheit
icon: "mdi:temperature-fahrenheit"
value: fahrenheit
- entity: binary_sensor
name: Low water
class: problem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,6 @@ secondary_entities:
name: option
mapping:
- dps_val: false
value: Celsius
value: celsius
- dps_val: true
value: Fahrenheit
value: fahrenheit
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ secondary_entities:
name: option
mapping:
- dps_val: c
value: Celsius
value: celsius
- dps_val: f
value: Fahrenheit
value: fahrenheit
- entity: number
name: Holiday days
category: config
Expand Down
4 changes: 2 additions & 2 deletions custom_components/tuya_local/devices/carson_cb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ secondary_entities:
name: option
mapping:
- dps_val: C
value: Celsius
value: celsius
- dps_val: F
value: Fahrenheit
value: fahrenheit
- entity: switch
name: Sleep
icon: "mdi:power-sleep"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ secondary_entities:
name: option
mapping:
- dps_val: C
value: Celsius
value: celsius
- dps_val: F
value: Fahrenheit
value: fahrenheit
- entity: sensor
class: energy
category: diagnostic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ secondary_entities:
name: option
mapping:
- dps_val: false
value: Celsius
value: celsius
- dps_val: true
value: Fahrenheit
value: fahrenheit
- entity: sensor
name: Timer
class: duration
Expand Down
4 changes: 2 additions & 2 deletions custom_components/tuya_local/devices/eberg_cooly_c35hd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,6 @@ secondary_entities:
name: option
mapping:
- dps_val: true
value: "Fahrenheit"
value: fahrenheit
- dps_val: false
value: "Celsius"
value: celsius
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,6 @@ secondary_entities:
name: option
mapping:
- dps_val: C
value: Celsius
value: celsius
- dps_val: F
value: Fahrenheit
value: fahrenheit
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,6 @@ secondary_entities:
name: option
mapping:
- dps_val: false
value: Celsius
value: celsius
- dps_val: true
value: Fahrenheit
value: fahrenheit
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ secondary_entities:
type: string
mapping:
- dps_val: "c"
value: Celsius
value: celsius
- dps_val: "f"
value: Fahrenheit
value: fahrenheit
- entity: switch
name: Sleep Mode
category: config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ secondary_entities:
name: option
mapping:
- dps_val: false
value: Celsius
value: celsius
- dps_val: true
value: Fahrenheit
value: fahrenheit
- entity: binary_sensor
name: Fault
class: problem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ secondary_entities:
name: option
mapping:
- dps_val: c
value: Celsius
value: celsius
- dps_val: f
value: Fahrenheit
value: fahrenheit
- entity: sensor
class: humidity
dps:
Expand Down
4 changes: 2 additions & 2 deletions custom_components/tuya_local/devices/etop_fcu_thermostat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ secondary_entities:
type: string
mapping:
- dps_val: c
value: Celsius
value: celsius
- dps_val: f
value: Fahrenheit
value: fahrenheit
############################################################
# Programming mode
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ secondary_entities:
name: option
mapping:
- dps_val: c
value: Celsius
value: celsius
- dps_val: f
value: Fahrenheit
value: fahrenheit
- entity: binary_sensor
name: Fault
class: problem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,6 @@ secondary_entities:
name: option
mapping:
- dps_val: c
value: Celsius
value: celsius
- dps_val: f
value: Fahrenheit
value: fahrenheit
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ secondary_entities:
name: option
optional: true
mapping:
- dps_val: "c"
value: Celsius
- dps_val: "f"
value: Fahrenheit
- dps_val: c
value: celsius
- dps_val: f
value: fahrenheit
- entity: number
name: Temperature calibration
category: config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,9 @@ secondary_entities:
name: option
mapping:
- dps_val: false
value: Celsius
value: celsius
- dps_val: true
value: Fahrenheit
value: fahrenheit
- entity: binary_sensor
name: Fault
class: problem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ secondary_entities:
name: option
mapping:
- dps_val: f
value: Fahrenheit
value: fahrenheit
- dps_val: c
value: Celsius
value: celsius
- entity: sensor
class: battery
category: diagnostic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ secondary_entities:
name: option
mapping:
- dps_val: f
value: Fahrenheit
value: fahrenheit
- dps_val: c
value: Celsius
value: celsius
- entity: sensor
class: battery
category: diagnostic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ secondary_entities:
name: option
mapping:
- dps_val: F
value: Fahrenheit
value: fahrenheit
- dps_val: C
value: Celsius
value: celsius
- entity: sensor
class: battery
category: diagnostic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ secondary_entities:
type: string
mapping:
- dps_val: C
value: Celsius
value: celsius
- dps_val: F
value: Fahrenheit
value: fahrenheit
- entity: binary_sensor
class: heat
category: diagnostic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ secondary_entities:
type: string
mapping:
- dps_val: C
value: Celsius
value: celsius
- dps_val: F
value: Fahrenheit
value: fahrenheit
- entity: binary_sensor
class: heat
category: diagnostic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ secondary_entities:
name: option
mapping:
- dps_val: true
value: Celsius
value: celsius
- dps_val: false
value: Fahrenheit
value: fahrenheit
- entity: number
name: Recipe
category: config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ secondary_entities:
name: option
mapping:
- dps_val: c
value: Celsius
value: celsius
- dps_val: f
value: Fahrenheit
value: fahrenheit
- entity: binary_sensor
name: Fault
class: problem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,9 @@ secondary_entities:
type: boolean
mapping:
- dps_val: false
value: Celsius
value: celsius
- dps_val: true
value: Fahrenheit
icon: "mdi:temperature-fahrenheit"
value: fahrenheit
- entity: number
category: config
class: temperature
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,6 @@ secondary_entities:
name: option
mapping:
- dps_val: C
value: Celsius
value: celsius
- dps_val: F
value: Fahrenheit
value: fahrenheit
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@ secondary_entities:
name: option
mapping:
- dps_val: C
value: Celsius
value: celsius
- dps_val: F
value: Fahrenheit
value: fahrenheit
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ secondary_entities:
type: string
mapping:
- dps_val: f
value: Fahrenheit
value: fahrenheit
- dps_val: c
value: Celsius
value: celsius
- entity: binary_sensor
name: Fault
class: problem
Expand Down
4 changes: 2 additions & 2 deletions custom_components/tuya_local/devices/me80_thermostat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ secondary_entities:
name: option
mapping:
- dps_val: c
value: Celsius
value: celsius
- dps_val: f
value: Fahrenheit
value: fahrenheit
- entity: number
name: Temperature calibration
category: config
Expand Down
Loading

0 comments on commit 4e9cb5c

Please sign in to comment.