Browse Source

Temperature unit selects: hassfest requires lower case translation keys

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
Jason Rumney 1 year ago
parent
commit
4e9cb5c008
83 changed files with 170 additions and 170 deletions
  1. 2 2
      custom_components/tuya_local/devices/advancedfires_1500_fireplace.yaml
  2. 2 2
      custom_components/tuya_local/devices/arlec_pa1123bkha_portable_air_conditioner.yaml
  3. 2 2
      custom_components/tuya_local/devices/arlec_thermostat_smartplug.yaml
  4. 2 2
      custom_components/tuya_local/devices/becool_heatpump.yaml
  5. 2 2
      custom_components/tuya_local/devices/beok_tr8b_thermostat.yaml
  6. 2 2
      custom_components/tuya_local/devices/beok_tr9b_thermostat.yaml
  7. 2 3
      custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml
  8. 2 2
      custom_components/tuya_local/devices/blumfeldt_cosmicbeam_heater.yaml
  9. 2 2
      custom_components/tuya_local/devices/brade_mc6_thermostat.yaml
  10. 2 2
      custom_components/tuya_local/devices/carson_cb.yaml
  11. 2 2
      custom_components/tuya_local/devices/della_airconditioner.yaml
  12. 2 2
      custom_components/tuya_local/devices/duux_blizzard_portable_aircon.yaml
  13. 2 2
      custom_components/tuya_local/devices/eberg_cooly_c35hd.yaml
  14. 2 2
      custom_components/tuya_local/devices/electric_panel_heater.yaml
  15. 2 2
      custom_components/tuya_local/devices/electriq_airflex15w_heatpump.yaml
  16. 2 2
      custom_components/tuya_local/devices/electriq_ecosilent14hpw_aircon.yaml
  17. 2 2
      custom_components/tuya_local/devices/em3378_weather_station.yaml
  18. 2 2
      custom_components/tuya_local/devices/etop_ch7100_thermostat.yaml
  19. 2 2
      custom_components/tuya_local/devices/etop_fcu_thermostat.yaml
  20. 2 2
      custom_components/tuya_local/devices/evotherm_eti_heatpump.yaml
  21. 2 2
      custom_components/tuya_local/devices/heatstorm_hs6000gc_heater.yaml
  22. 4 4
      custom_components/tuya_local/devices/hombli_thermostatic_radiator_valve.yaml
  23. 2 2
      custom_components/tuya_local/devices/hysen_hy08we2_thermostat.yaml
  24. 2 2
      custom_components/tuya_local/devices/inkbird_bbq4t_thermometer.yaml
  25. 2 2
      custom_components/tuya_local/devices/inkbird_bbq4t_thermometerv2.yaml
  26. 2 2
      custom_components/tuya_local/devices/inkbird_ibbq4bw_thermometer.yaml
  27. 2 2
      custom_components/tuya_local/devices/inkbird_itc306a_thermostat.yaml
  28. 2 2
      custom_components/tuya_local/devices/inkbird_itc308_thermostat.yaml
  29. 2 2
      custom_components/tuya_local/devices/inkbird_sousvide_cooker.yaml
  30. 2 2
      custom_components/tuya_local/devices/inventor_tokenslegend_airconditioner.yaml
  31. 2 3
      custom_components/tuya_local/devices/jiahong_et72w_thermostat.yaml
  32. 2 2
      custom_components/tuya_local/devices/kogan_kawfpac12ya_airconditioner.yaml
  33. 2 2
      custom_components/tuya_local/devices/kogan_kawfpac16pya_airconditioner.yaml
  34. 2 2
      custom_components/tuya_local/devices/madimack_eco_heatpump.yaml
  35. 2 2
      custom_components/tuya_local/devices/me80_thermostat.yaml
  36. 2 2
      custom_components/tuya_local/devices/minco_mh1823d_thermostat.yaml
  37. 2 2
      custom_components/tuya_local/devices/modernflames_orion_fireplace.yaml
  38. 2 2
      custom_components/tuya_local/devices/mrc_magnum_floorheater.yaml
  39. 2 2
      custom_components/tuya_local/devices/neo_coolcam_siren.yaml
  40. 2 2
      custom_components/tuya_local/devices/pgst_climate_sensor.yaml
  41. 2 2
      custom_components/tuya_local/devices/poolex_arctic_action.yaml
  42. 2 2
      custom_components/tuya_local/devices/poolex_q7_heatpump.yaml
  43. 2 2
      custom_components/tuya_local/devices/princess_panel_heater.yaml
  44. 2 2
      custom_components/tuya_local/devices/rotenso_ronir35wi_heatpump.yaml
  45. 2 2
      custom_components/tuya_local/devices/royal_airconditioner.yaml
  46. 2 2
      custom_components/tuya_local/devices/salcar_t9w_thermostat.yaml
  47. 2 2
      custom_components/tuya_local/devices/saswell_t29utk_thermostat.yaml
  48. 2 2
      custom_components/tuya_local/devices/sencor_air_conditioner.yaml
  49. 2 2
      custom_components/tuya_local/devices/setti_czajnik_kettle.yaml
  50. 2 2
      custom_components/tuya_local/devices/suntec_coolfix_airconditioner.yaml
  51. 2 2
      custom_components/tuya_local/devices/t5e_wf_thermostat.yaml
  52. 2 2
      custom_components/tuya_local/devices/tesla_airconditioner.yaml
  53. 2 2
      custom_components/tuya_local/devices/th05_temp_humidity_sensor.yaml
  54. 2 2
      custom_components/tuya_local/devices/th08_temperature_and_humidity_sensor.yaml
  55. 2 2
      custom_components/tuya_local/devices/th16_temp_humidity_sensor.yaml
  56. 2 2
      custom_components/tuya_local/devices/touchstone_sideline_fireplace.yaml
  57. 2 2
      custom_components/tuya_local/devices/tuya_000004rime_weather_station.yaml
  58. 2 2
      custom_components/tuya_local/devices/tyte_d1_thermostat.yaml
  59. 2 2
      custom_components/tuya_local/devices/ultenic_air_fryer.yaml
  60. 2 2
      custom_components/tuya_local/devices/vivax_heatpump.yaml
  61. 2 2
      custom_components/tuya_local/devices/weeket_kettle.yaml
  62. 2 2
      custom_components/tuya_local/devices/wilfa_haze_hu400bc_humidifier.yaml
  63. 2 2
      custom_components/tuya_local/devices/zigbee_climate_alarm.yaml
  64. 2 2
      custom_components/tuya_local/translations/bg.json
  65. 2 2
      custom_components/tuya_local/translations/cz.json
  66. 2 2
      custom_components/tuya_local/translations/en.json
  67. 2 2
      custom_components/tuya_local/translations/es.json
  68. 2 2
      custom_components/tuya_local/translations/fr.json
  69. 2 2
      custom_components/tuya_local/translations/hu.json
  70. 3 2
      custom_components/tuya_local/translations/id.json
  71. 2 2
      custom_components/tuya_local/translations/it.json
  72. 2 2
      custom_components/tuya_local/translations/no-NB.json
  73. 3 2
      custom_components/tuya_local/translations/pl.json
  74. 2 2
      custom_components/tuya_local/translations/pt-BR.json
  75. 2 2
      custom_components/tuya_local/translations/ru.json
  76. 2 2
      custom_components/tuya_local/translations/uk.json
  77. 2 2
      custom_components/tuya_local/translations/ur.json
  78. 2 2
      tests/devices/test_beok_tr9b_thermostat.py
  79. 2 2
      tests/devices/test_eberg_cooly_c35hd.py
  80. 2 2
      tests/devices/test_inkbird_itc308_thermostat.py
  81. 2 2
      tests/devices/test_inkbird_sousvide.py
  82. 2 2
      tests/devices/test_jiahong_et72w_thermostat.py
  83. 2 2
      tests/devices/test_wilfa_haze_hu400bc_humidifier.py

+ 2 - 2
custom_components/tuya_local/devices/advancedfires_1500_fireplace.yaml

@@ -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:

+ 2 - 2
custom_components/tuya_local/devices/arlec_pa1123bkha_portable_air_conditioner.yaml

@@ -122,6 +122,6 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: false
-            value: Celsius
+            value: celsius
           - dps_val: true
-            value: Fahrenheit
+            value: fahrenheit

+ 2 - 2
custom_components/tuya_local/devices/arlec_thermostat_smartplug.yaml

@@ -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

+ 2 - 2
custom_components/tuya_local/devices/becool_heatpump.yaml

@@ -97,6 +97,6 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: true
-            value: "Fahrenheit"
+            value: fahrenheit
           - dps_val: false
-            value: "Celsius"
+            value: celsius

+ 2 - 2
custom_components/tuya_local/devices/beok_tr8b_thermostat.yaml

@@ -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

+ 2 - 2
custom_components/tuya_local/devices/beok_tr9b_thermostat.yaml

@@ -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

+ 2 - 3
custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml

@@ -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

+ 2 - 2
custom_components/tuya_local/devices/blumfeldt_cosmicbeam_heater.yaml

@@ -135,6 +135,6 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: false
-            value: Celsius
+            value: celsius
           - dps_val: true
-            value: Fahrenheit
+            value: fahrenheit

+ 2 - 2
custom_components/tuya_local/devices/brade_mc6_thermostat.yaml

@@ -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

+ 2 - 2
custom_components/tuya_local/devices/carson_cb.yaml

@@ -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"

+ 2 - 2
custom_components/tuya_local/devices/della_airconditioner.yaml

@@ -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

+ 2 - 2
custom_components/tuya_local/devices/duux_blizzard_portable_aircon.yaml

@@ -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

+ 2 - 2
custom_components/tuya_local/devices/eberg_cooly_c35hd.yaml

@@ -101,6 +101,6 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: true
-            value: "Fahrenheit"
+            value: fahrenheit
           - dps_val: false
-            value: "Celsius"
+            value: celsius

+ 2 - 2
custom_components/tuya_local/devices/electric_panel_heater.yaml

@@ -153,6 +153,6 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: C
-            value: Celsius
+            value: celsius
           - dps_val: F
-            value: Fahrenheit
+            value: fahrenheit

+ 2 - 2
custom_components/tuya_local/devices/electriq_airflex15w_heatpump.yaml

@@ -131,6 +131,6 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: false
-            value: Celsius
+            value: celsius
           - dps_val: true
-            value: Fahrenheit
+            value: fahrenheit

+ 2 - 2
custom_components/tuya_local/devices/electriq_ecosilent14hpw_aircon.yaml

@@ -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

+ 2 - 2
custom_components/tuya_local/devices/em3378_weather_station.yaml

@@ -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

+ 2 - 2
custom_components/tuya_local/devices/etop_ch7100_thermostat.yaml

@@ -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:

+ 2 - 2
custom_components/tuya_local/devices/etop_fcu_thermostat.yaml

@@ -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
   #

+ 2 - 2
custom_components/tuya_local/devices/evotherm_eti_heatpump.yaml

@@ -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

+ 2 - 2
custom_components/tuya_local/devices/heatstorm_hs6000gc_heater.yaml

@@ -124,6 +124,6 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: c
-            value: Celsius
+            value: celsius
           - dps_val: f
-            value: Fahrenheit
+            value: fahrenheit

+ 4 - 4
custom_components/tuya_local/devices/hombli_thermostatic_radiator_valve.yaml

@@ -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

+ 2 - 2
custom_components/tuya_local/devices/hysen_hy08we2_thermostat.yaml

@@ -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

+ 2 - 2
custom_components/tuya_local/devices/inkbird_bbq4t_thermometer.yaml

@@ -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

+ 2 - 2
custom_components/tuya_local/devices/inkbird_bbq4t_thermometerv2.yaml

@@ -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

+ 2 - 2
custom_components/tuya_local/devices/inkbird_ibbq4bw_thermometer.yaml

@@ -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

+ 2 - 2
custom_components/tuya_local/devices/inkbird_itc306a_thermostat.yaml

@@ -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

+ 2 - 2
custom_components/tuya_local/devices/inkbird_itc308_thermostat.yaml

@@ -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

+ 2 - 2
custom_components/tuya_local/devices/inkbird_sousvide_cooker.yaml

@@ -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

+ 2 - 2
custom_components/tuya_local/devices/inventor_tokenslegend_airconditioner.yaml

@@ -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

+ 2 - 3
custom_components/tuya_local/devices/jiahong_et72w_thermostat.yaml

@@ -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

+ 2 - 2
custom_components/tuya_local/devices/kogan_kawfpac12ya_airconditioner.yaml

@@ -102,6 +102,6 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: C
-            value: Celsius
+            value: celsius
           - dps_val: F
-            value: Fahrenheit
+            value: fahrenheit

+ 2 - 2
custom_components/tuya_local/devices/kogan_kawfpac16pya_airconditioner.yaml

@@ -100,6 +100,6 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: C
-            value: Celsius
+            value: celsius
           - dps_val: F
-            value: Fahrenheit
+            value: fahrenheit

+ 2 - 2
custom_components/tuya_local/devices/madimack_eco_heatpump.yaml

@@ -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

+ 2 - 2
custom_components/tuya_local/devices/me80_thermostat.yaml

@@ -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

+ 2 - 2
custom_components/tuya_local/devices/minco_mh1823d_thermostat.yaml

@@ -125,9 +125,9 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: c
-            value: Celsius
+            value: celsius
           - dps_val: f
-            value: Fahrenheit
+            value: fahrenheit
   - entity: number
     name: Calibration offset internal
     category: config

+ 2 - 2
custom_components/tuya_local/devices/modernflames_orion_fireplace.yaml

@@ -84,9 +84,9 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: c
-            value: Celsius
+            value: celsius
           - dps_val: f
-            value: Fahrenheit
+            value: fahrenheit
   - entity: select
     translation_key: timer
     category: config

+ 2 - 2
custom_components/tuya_local/devices/mrc_magnum_floorheater.yaml

@@ -169,9 +169,9 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: false
-            value: Celsius
+            value: celsius
           - dps_val: true
-            value: Fahrenheit
+            value: fahrenheit
   - entity: lock
     translation_key: child_lock
     category: config

+ 2 - 2
custom_components/tuya_local/devices/neo_coolcam_siren.yaml

@@ -169,9 +169,9 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: true
-            value: Celsius
+            value: celsius
           - dps_val: false
-            value: Fahrenheit
+            value: fahrenheit
   - entity: switch
     name: Temperature alarm
     icon: "mdi:thermometer-alert"

+ 2 - 2
custom_components/tuya_local/devices/pgst_climate_sensor.yaml

@@ -48,9 +48,9 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: f
-            value: Fahrenheit
+            value: fahrenheit
           - dps_val: c
-            value: Celsius
+            value: celsius
   - entity: number
     name: Maximum temperature
     category: config

+ 2 - 2
custom_components/tuya_local/devices/poolex_arctic_action.yaml

@@ -181,9 +181,9 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: c
-            value: Celsius
+            value: celsius
           - dps_val: f
-            value: Fahrenheit
+            value: fahrenheit
   - entity: binary_sensor
     class: problem
     name: Fault

+ 2 - 2
custom_components/tuya_local/devices/poolex_q7_heatpump.yaml

@@ -171,9 +171,9 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: c
-            value: Celsius
+            value: celsius
           - dps_val: f
-            value: Fahrenheit
+            value: fahrenheit
   - entity: binary_sensor
     name: Status
     class: running

+ 2 - 2
custom_components/tuya_local/devices/princess_panel_heater.yaml

@@ -61,6 +61,6 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: c
-            value: Celsius
+            value: celsius
           - dps_val: f
-            value: Fahrenheit
+            value: fahrenheit

+ 2 - 2
custom_components/tuya_local/devices/rotenso_ronir35wi_heatpump.yaml

@@ -112,9 +112,9 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: true
-            value: Fahrenheit
+            value: fahrenheit
           - dps_val: false
-            value: Celsius
+            value: celsius
   - entity: switch
     category: config
     name: Sleep

+ 2 - 2
custom_components/tuya_local/devices/royal_airconditioner.yaml

@@ -109,9 +109,9 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: true
-            value: Fahrenheit
+            value: fahrenheit
           - dps_val: false
-            value: Celsius
+            value: celsius
   - entity: switch
     name: Sleep mode
     icon: "mdi:power-sleep"

+ 2 - 2
custom_components/tuya_local/devices/salcar_t9w_thermostat.yaml

@@ -121,9 +121,9 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: c
-            value: Celsius
+            value: celsius
           - dps_val: f
-            value: Fahrenheit
+            value: fahrenheit
   - entity: number
     name: Minimum temperature
     category: config

+ 2 - 2
custom_components/tuya_local/devices/saswell_t29utk_thermostat.yaml

@@ -136,9 +136,9 @@ secondary_entities:
         type: string
         mapping:
           - dps_val: F
-            value: Fahrenheit
+            value: fahrenheit
           - dps_val: C
-            value: Celsius
+            value: celsius
   - entity: select
     name: Configuration
     icon: "mdi:tune"

+ 2 - 2
custom_components/tuya_local/devices/sencor_air_conditioner.yaml

@@ -83,6 +83,6 @@ secondary_entities:
         type: string
         mapping:
           - dps_val: C
-            value: Celsius
+            value: celsius
           - dps_val: F
-            value: Fahrenheit
+            value: fahrenheit

+ 2 - 2
custom_components/tuya_local/devices/setti_czajnik_kettle.yaml

@@ -208,9 +208,9 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: c
-            value: Celsius
+            value: celsius
           - dps_val: f
-            value: Fahrenheit
+            value: fahrenheit
   - entity: switch
     name: Keep warm
     icon: "mdi:kettle-outline"

+ 2 - 2
custom_components/tuya_local/devices/suntec_coolfix_airconditioner.yaml

@@ -140,6 +140,6 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: c
-            value: Celsius
+            value: celsius
           - dps_val: f
-            value: Fahrenheit
+            value: fahrenheit

+ 2 - 2
custom_components/tuya_local/devices/t5e_wf_thermostat.yaml

@@ -267,9 +267,9 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: c
-            value: Celsius
+            value: celsius
           - dps_val: f
-            value: Fahrenheit
+            value: fahrenheit
   - entity: sensor
     name: Working status
     category: diagnostic

+ 2 - 2
custom_components/tuya_local/devices/tesla_airconditioner.yaml

@@ -133,9 +133,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

+ 2 - 2
custom_components/tuya_local/devices/th05_temp_humidity_sensor.yaml

@@ -31,9 +31,9 @@ secondary_entities:
         type: string
         mapping:
           - dps_val: "f"
-            value: Fahrenheit
+            value: fahrenheit
           - dps_val: "c"
-            value: Celsius
+            value: celsius
         optional: true
   - entity: sensor
     class: battery

+ 2 - 2
custom_components/tuya_local/devices/th08_temperature_and_humidity_sensor.yaml

@@ -46,6 +46,6 @@ secondary_entities:
         type: string
         mapping:
           - dps_val: "f"
-            value: Fahrenheit
+            value: fahrenheit
           - dps_val: "c"
-            value: Celsius
+            value: celsius

+ 2 - 2
custom_components/tuya_local/devices/th16_temp_humidity_sensor.yaml

@@ -30,9 +30,9 @@ secondary_entities:
         type: string
         mapping:
           - dps_val: "f"
-            value: Fahrenheit
+            value: fahrenheit
           - dps_val: "c"
-            value: Celsius
+            value: celsius
         optional: true
   - entity: light
     name: Display

+ 2 - 2
custom_components/tuya_local/devices/touchstone_sideline_fireplace.yaml

@@ -87,9 +87,9 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: c
-            value: Celsius
+            value: celsius
           - dps_val: f
-            value: Fahrenheit
+            value: fahrenheit
   - entity: light
     name: Flame
     category: config

+ 2 - 2
custom_components/tuya_local/devices/tuya_000004rime_weather_station.yaml

@@ -186,9 +186,9 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: c
-            value: Celsius
+            value: celsius
           - dps_val: f
-            value: Fahrenheit
+            value: fahrenheit
   - entity: light
     name: LCD brightness
     icon: "mdi:television-ambient-light"

+ 2 - 2
custom_components/tuya_local/devices/tyte_d1_thermostat.yaml

@@ -174,9 +174,9 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: c
-            value: Celsius
+            value: celsius
           - dps_val: f
-            value: Fahrenheit
+            value: fahrenheit
   - entity: number
     name: Vibration
     category: config

+ 2 - 2
custom_components/tuya_local/devices/ultenic_air_fryer.yaml

@@ -184,9 +184,9 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: c
-            value: Celsius
+            value: celsius
           - dps_val: f
-            value: Fahrenheit
+            value: fahrenheit
   - entity: switch
     name: Preheat
     icon: "mdi:fire"

+ 2 - 2
custom_components/tuya_local/devices/vivax_heatpump.yaml

@@ -205,9 +205,9 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: c
-            value: Celsius
+            value: celsius
           - dps_val: f
-            value: Fahrenheit
+            value: fahrenheit
   - entity: switch
     name: Quiet
     category: config

+ 2 - 2
custom_components/tuya_local/devices/weeket_kettle.yaml

@@ -79,9 +79,9 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: c
-            value: Celsius
+            value: celsius
           - dps_val: f
-            value: Fahrenheit
+            value: fahrenheit
   - entity: switch
     name: Keep warm
     icon: "mdi:heat-wave"

+ 2 - 2
custom_components/tuya_local/devices/wilfa_haze_hu400bc_humidifier.yaml

@@ -140,9 +140,9 @@ secondary_entities:
         type: string
         mapping:
           - dps_val: c
-            value: Celsius
+            value: celsius
           - dps_val: f
-            value: Fahrenheit
+            value: fahrenheit
   - entity: select
     translation_key: timer
     category: config

+ 2 - 2
custom_components/tuya_local/devices/zigbee_climate_alarm.yaml

@@ -49,9 +49,9 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: c
-            value: Celsius
+            value: celsius
           - dps_val: f
-            value: Fahrenheit
+            value: fahrenheit
   - entity: number
     name: High temperature
     category: config

+ 2 - 2
custom_components/tuya_local/translations/bg.json

@@ -212,8 +212,8 @@
             "temperature_unit": {
                 "name": "Температурна единица",
                 "state": {
-                    "Celsius": "Целзий",
-                    "Fahrenheit": "Фаренхайт"
+                    "celsius": "Целзий",
+                    "fahrenheit": "Фаренхайт"
                 }
             }
         }

+ 2 - 2
custom_components/tuya_local/translations/cz.json

@@ -212,8 +212,8 @@
             "temperature_unit": {
                 "name": "Jednotka teploty",
                 "state": {
-                    "Celsius": "Celsia",
-                    "Fahrenheit": "Fahrenheita"
+                    "celsius": "Celsia",
+                    "fahrenheit": "Fahrenheita"
                 }
             }
         }

+ 2 - 2
custom_components/tuya_local/translations/en.json

@@ -212,8 +212,8 @@
             "temperature_unit": {
                 "name": "Temperature unit",
                 "state": {
-                    "Celsius": "Celsius",
-                    "Fahrenheit": "Fahrenheit"
+                    "celsius": "Celsius",
+                    "fahrenheit": "Fahrenheit"
                 }
             }
         }

+ 2 - 2
custom_components/tuya_local/translations/es.json

@@ -212,8 +212,8 @@
             "temperature_unit": {
                 "name": "Unidad de temperatura",
                 "state": {
-                    "Celsius": "Celsius",
-                    "Fahrenheit": "Fahrenheit"
+                    "celsius": "Celsius",
+                    "fahrenheit": "Fahrenheit"
                 }
             }
         }

+ 2 - 2
custom_components/tuya_local/translations/fr.json

@@ -179,8 +179,8 @@
             "temperature_unit": {
                 "name": "Unité de température",
                 "state": {
-                    "Celsius": "Celsius",
-                    "Fahrenheit": "Fahrenheit"
+                    "celsius": "Celsius",
+                    "fahrenheit": "Fahrenheit"
                 }
             }
         }

+ 2 - 2
custom_components/tuya_local/translations/hu.json

@@ -212,8 +212,8 @@
             "temperature_unit": {
                 "name": "Hőmérséklet mértékegysége",
                 "state": {
-                    "Celsius": "Celsius",
-                    "Fahrenheit": "Fahrenheit"
+                    "celsius": "Celsius",
+                    "fahrenheit": "Fahrenheit"
                 }
             }
         }

+ 3 - 2
custom_components/tuya_local/translations/id.json

@@ -212,8 +212,9 @@
             "temperature_unit": {
                 "name": "Satuan suhu",
                 "state": {
-                    "Celsius": "Celsius",
-                    "Fahrenheit": "Fahrenheit"
+                    "celsius": "Celsius",
+                    "fahrenheit": "Fahrenheit"
+                }
             }
         }
     }

+ 2 - 2
custom_components/tuya_local/translations/it.json

@@ -212,8 +212,8 @@
             "temperature_unit": {
                 "name": "Unità di temperatura",
                 "state": {
-                    "Celsius": "Centigrado",
-                    "Fahrenheit": "Fahrenheit"
+                    "celsius": "Centigrado",
+                    "fahrenheit": "Fahrenheit"
                 }
             }
         }

+ 2 - 2
custom_components/tuya_local/translations/no-NB.json

@@ -196,8 +196,8 @@
             "temperature_unit": {
                 "name": "Temperaturenhet",
                 "state": {
-                    "Celsius": "Celsius",
-                    "Fahrenheit": "Fahrenheit"
+                    "celsius": "Celsius",
+                    "fahrenheit": "Fahrenheit"
                 }
             }
         }

+ 3 - 2
custom_components/tuya_local/translations/pl.json

@@ -211,9 +211,10 @@
             "temperature_unit": {
                 "name": "Jednostka temperatury",
                 "state": {
-                    "Celsius": "Celsjusz",
-                    "Fahrenheit": "Fahrenheita"
+                    "celsius": "Celsjusz",
+                    "fahrenheit": "Fahrenheita"
                 }
+            }
         }
     }
 }

+ 2 - 2
custom_components/tuya_local/translations/pt-BR.json

@@ -212,8 +212,8 @@
             "temperature_unit": {
                 "name": "Unidade de temperatura",
                 "state": {
-                    "Celsius": "Celsius",
-                    "Fahrenheit": "Fahrenheit"
+                    "celsius": "Celsius",
+                    "fahrenheit": "Fahrenheit"
                 }
             }
         }

+ 2 - 2
custom_components/tuya_local/translations/ru.json

@@ -212,8 +212,8 @@
       "temperature_unit": {
         "name": "Единица измерения температуры",
         "state": {
-          "Celsius": "Цельсия",
-          "Fahrenheit": "Фаренгейт"
+          "celsius": "Цельсия",
+          "fahrenheit": "Фаренгейт"
         }
       }
     }

+ 2 - 2
custom_components/tuya_local/translations/uk.json

@@ -212,8 +212,8 @@
             "temperature_unit": {
                 "name": "Температурна одиниця",
                 "state": {
-                    "Celsius": "Цельсія",
-                    "Fahrenheit": "Фаренгейт"
+                    "celsius": "Цельсія",
+                    "fahrenheit": "Фаренгейт"
                 }
             }
         }

+ 2 - 2
custom_components/tuya_local/translations/ur.json

@@ -212,8 +212,8 @@
             "temperature_unit": {
                 "name": "درجہ حرارت یونٹ",
                 "state": {
-                    "Celsius": "سیلسیس",
-                    "Fahrenheit": "فارن ہائیٹ"
+                    "celsius": "سیلسیس",
+                    "fahrenheit": "فارن ہائیٹ"
                 }
             }
         }

+ 2 - 2
tests/devices/test_beok_tr9b_thermostat.py

@@ -69,8 +69,8 @@ class TestBeokTR9BThermostat(
                     "dps": UNIT_DPS,
                     "name": "select_temperature_unit",
                     "options": {
-                        "c": "Celsius",
-                        "f": "Fahrenheit",
+                        "c": "celsius",
+                        "f": "fahrenheit",
                     },
                 },
             ],

+ 2 - 2
tests/devices/test_eberg_cooly_c35hd.py

@@ -48,8 +48,8 @@ class TestEbergCoolyC35HDHeatpump(
             UNIT_DPS,
             self.entities.get("select_temperature_unit"),
             {
-                True: "Fahrenheit",
-                False: "Celsius",
+                True: "fahrenheit",
+                False: "celsius",
             },
         )
         self.mark_secondary(["select_temperature_unit"])

+ 2 - 2
tests/devices/test_inkbird_itc308_thermostat.py

@@ -52,8 +52,8 @@ class TestInkbirdITC308Thermostat(
             UNIT_DPS,
             self.entities.get("select_temperature_unit"),
             {
-                "C": "Celsius",
-                "F": "Fahrenheit",
+                "C": "celsius",
+                "F": "fahrenheit",
             },
         )
         self.setUpMultiBinarySensors(

+ 2 - 2
tests/devices/test_inkbird_sousvide.py

@@ -81,8 +81,8 @@ class TestInkbirdSousVideCooker(
             UNIT_DPS,
             self.entities.get("select_temperature_unit"),
             {
-                False: "Fahrenheit",
-                True: "Celsius",
+                False: "fahrenheit",
+                True: "celsius",
             },
         )
         self.setUpBasicSensor(

+ 2 - 2
tests/devices/test_jiahong_et72w_thermostat.py

@@ -71,8 +71,8 @@ class TestJiahongEt72wThermostat(
                     "dps": UNIT_DPS,
                     "name": "select_temperature_unit",
                     "options": {
-                        False: "Celsius",
-                        True: "Fahrenheit",
+                        False: "celsius",
+                        True: "fahrenheit",
                     },
                 },
                 {

+ 2 - 2
tests/devices/test_wilfa_haze_hu400bc_humidifier.py

@@ -92,8 +92,8 @@ class TestWilfaHazeHumidifier(
                     "dps": UNIT_DPS,
                     "name": "select_temperature_unit",
                     "options": {
-                        "c": "Celsius",
-                        "f": "Fahrenheit",
+                        "c": "celsius",
+                        "f": "fahrenheit",
                     },
                 },
             ],