Sfoglia il codice sorgente

Child lock: Move name and icon to translations

Issue #1579
Jason Rumney 1 anno fa
parent
commit
bbafb21347
100 ha cambiato i file con 130 aggiunte e 346 eliminazioni
  1. 1 2
      custom_components/tuya_local/devices/AlecoAir_D25_Traditio.yaml
  2. 13 0
      custom_components/tuya_local/devices/README.md
  3. 1 6
      custom_components/tuya_local/devices/alecoair_d12_dehumidifier.yaml
  4. 1 6
      custom_components/tuya_local/devices/alecoair_d12_home_dehumidifier.yaml
  5. 1 6
      custom_components/tuya_local/devices/alecoair_d14_dehumidifier.yaml
  6. 1 6
      custom_components/tuya_local/devices/alecoair_d16_dehumidifier.yaml
  7. 1 1
      custom_components/tuya_local/devices/anko_fan.yaml
  8. 1 1
      custom_components/tuya_local/devices/arlec_12speed_tower_fan.yaml
  9. 1 1
      custom_components/tuya_local/devices/arlec_19speed_fan.yaml
  10. 1 1
      custom_components/tuya_local/devices/arlec_6speed_fan.yaml
  11. 1 1
      custom_components/tuya_local/devices/arlec_fan.yaml
  12. 1 1
      custom_components/tuya_local/devices/arlec_fan_light.yaml
  13. 1 2
      custom_components/tuya_local/devices/arlec_panel_heater.yaml
  14. 1 2
      custom_components/tuya_local/devices/arlec_panel_heater_v2.yaml
  15. 1 2
      custom_components/tuya_local/devices/arlec_pb88uha_s2_switch.yaml
  16. 1 1
      custom_components/tuya_local/devices/aspen_asp200_fan.yaml
  17. 1 1
      custom_components/tuya_local/devices/atomi_ceiling_fan.yaml
  18. 1 2
      custom_components/tuya_local/devices/avatto_me81_thermostat.yaml
  19. 2 8
      custom_components/tuya_local/devices/avatto_wt100_thermostat.yaml
  20. 1 6
      custom_components/tuya_local/devices/awow_th213_thermostat.yaml
  21. 1 6
      custom_components/tuya_local/devices/awow_th213v2_thermostat.yaml
  22. 1 6
      custom_components/tuya_local/devices/beca_bac002_thermostat_c.yaml
  23. 2 7
      custom_components/tuya_local/devices/beca_bhp6000_thermostat_c.yaml
  24. 2 7
      custom_components/tuya_local/devices/beca_bhp6000_thermostat_f.yaml
  25. 2 7
      custom_components/tuya_local/devices/beca_bhp6000_thermostat_mapped.yaml
  26. 1 6
      custom_components/tuya_local/devices/beca_bht002_thermostat_c.yaml
  27. 1 6
      custom_components/tuya_local/devices/beca_bht6000_thermostat_c.yaml
  28. 1 2
      custom_components/tuya_local/devices/beca_zht002_thermostat_c.yaml
  29. 2 7
      custom_components/tuya_local/devices/beok_tgm50_thermostat.yaml
  30. 2 7
      custom_components/tuya_local/devices/beok_tgr81_thermostat_c.yaml
  31. 2 7
      custom_components/tuya_local/devices/beok_tol47_thermostat.yaml
  32. 2 3
      custom_components/tuya_local/devices/beok_tr8b_thermostat.yaml
  33. 1 6
      custom_components/tuya_local/devices/beok_tr9b_thermostat.yaml
  34. 1 6
      custom_components/tuya_local/devices/betterlife_bl1500_heater.yaml
  35. 1 2
      custom_components/tuya_local/devices/bht002_galw_thermostat.yaml
  36. 1 2
      custom_components/tuya_local/devices/blitzwolf_bwshp6_smartplug.yaml
  37. 1 2
      custom_components/tuya_local/devices/blumfeldt_cosmicbeam_heater.yaml
  38. 1 2
      custom_components/tuya_local/devices/brade_mc6_thermostat.yaml
  39. 1 6
      custom_components/tuya_local/devices/breville_lad208_dehumidifier.yaml
  40. 1 1
      custom_components/tuya_local/devices/breville_smart_air_viral_protect_plus.yaml
  41. 1 1
      custom_components/tuya_local/devices/breville_smartairconnect_purifier.yaml
  42. 1 2
      custom_components/tuya_local/devices/bvf_cp1_heater.yaml
  43. 1 1
      custom_components/tuya_local/devices/bwt_heatpump.yaml
  44. 1 1
      custom_components/tuya_local/devices/cadence_aroma_diffuser.yaml
  45. 1 6
      custom_components/tuya_local/devices/calex_convector_heater.yaml
  46. 1 1
      custom_components/tuya_local/devices/carro_smart_ceiling_fan_light.yaml
  47. 1 1
      custom_components/tuya_local/devices/casafan_ceiling_fan_light.yaml
  48. 1 1
      custom_components/tuya_local/devices/cecotec_fan_light.yaml
  49. 1 1
      custom_components/tuya_local/devices/chanfok_fan_light.yaml
  50. 2 3
      custom_components/tuya_local/devices/cooper_hunter_air_conditioner.yaml
  51. 1 1
      custom_components/tuya_local/devices/daizuki_heatpump.yaml
  52. 1 2
      custom_components/tuya_local/devices/della_airconditioner.yaml
  53. 1 6
      custom_components/tuya_local/devices/devola_patio_heater.yaml
  54. 1 6
      custom_components/tuya_local/devices/dry_pury_evo_dehumidifier.yaml
  55. 1 2
      custom_components/tuya_local/devices/dual_power_monitor_smartplugv2.yaml
  56. 1 1
      custom_components/tuya_local/devices/duux_whisper_fan.yaml
  57. 2 7
      custom_components/tuya_local/devices/ecostrad_iq_heating_element.yaml
  58. 1 6
      custom_components/tuya_local/devices/ecostrad_iqceramic_radiator.yaml
  59. 1 2
      custom_components/tuya_local/devices/eeese_anna_dehumidifier.yaml
  60. 1 2
      custom_components/tuya_local/devices/eeese_carl_dehumidifier.yaml
  61. 1 2
      custom_components/tuya_local/devices/eeese_otto_dehumidifier.yaml
  62. 1 6
      custom_components/tuya_local/devices/eesee_adam_dehumidifier.yaml
  63. 1 2
      custom_components/tuya_local/devices/electric_panel_heater.yaml
  64. 1 1
      custom_components/tuya_local/devices/electriq_cd20pro_dehumidifier.yaml
  65. 2 7
      custom_components/tuya_local/devices/electriq_cd25pro_dehumidifier.yaml
  66. 1 2
      custom_components/tuya_local/devices/electriq_pd45e_dehumidifier.yaml
  67. 1 6
      custom_components/tuya_local/devices/essentials_purifier.yaml
  68. 1 2
      custom_components/tuya_local/devices/etop_ch7100_thermostat.yaml
  69. 3 4
      custom_components/tuya_local/devices/etop_fcu_thermostat.yaml
  70. 1 6
      custom_components/tuya_local/devices/etop_ht_thermostat.yaml
  71. 1 1
      custom_components/tuya_local/devices/evotherm_eti_heatpump.yaml
  72. 1 1
      custom_components/tuya_local/devices/fisher_summer_air_conditioner.yaml
  73. 1 1
      custom_components/tuya_local/devices/goldair_101cm_tower_fan.yaml
  74. 1 6
      custom_components/tuya_local/devices/goldair_dehumidifier.yaml
  75. 1 1
      custom_components/tuya_local/devices/goldair_fan.yaml
  76. 1 6
      custom_components/tuya_local/devices/goldair_geco_heater.yaml
  77. 1 6
      custom_components/tuya_local/devices/goldair_gpcv_heater.yaml
  78. 1 2
      custom_components/tuya_local/devices/goldair_gpdh340_dehumidifier.yaml
  79. 2 7
      custom_components/tuya_local/devices/goldair_gpph_heater.yaml
  80. 1 1
      custom_components/tuya_local/devices/goldair_platinum_tower_fan.yaml
  81. 1 2
      custom_components/tuya_local/devices/greenmigo_alpha_q25_pro_wifi.yaml
  82. 1 6
      custom_components/tuya_local/devices/grid_connect_usb_double_power_point.yaml
  83. 1 2
      custom_components/tuya_local/devices/grid_connect_usb_power_point.yaml
  84. 1 2
      custom_components/tuya_local/devices/heatstorm_hs6000gc_heater.yaml
  85. 2 7
      custom_components/tuya_local/devices/himox_h05_purifier.yaml
  86. 1 1
      custom_components/tuya_local/devices/hiper_bladeless_fan.yaml
  87. 1 2
      custom_components/tuya_local/devices/hjz_radiator.yaml
  88. 1 2
      custom_components/tuya_local/devices/hombli_thermostatic_radiator_valve.yaml
  89. 2 3
      custom_components/tuya_local/devices/hosome_purifier.yaml
  90. 2 3
      custom_components/tuya_local/devices/hysen_hy08acf_thermostat.yaml
  91. 2 7
      custom_components/tuya_local/devices/hysen_hy08we2_thermostat.yaml
  92. 1 6
      custom_components/tuya_local/devices/hyundai_sahara_dehumidifier.yaml
  93. 1 1
      custom_components/tuya_local/devices/immax_neo_light_vento.yaml
  94. 1 1
      custom_components/tuya_local/devices/inkbird_itc306a_thermostat.yaml
  95. 1 2
      custom_components/tuya_local/devices/inow_heater_element.yaml
  96. 1 2
      custom_components/tuya_local/devices/inow_heater_element_v2.yaml
  97. 1 6
      custom_components/tuya_local/devices/inventor_atmospherexl_dehumidifier.yaml
  98. 1 6
      custom_components/tuya_local/devices/jjpro_jpd02_dehumidifier.yaml
  99. 1 2
      custom_components/tuya_local/devices/juskys_oh125bw2_radiator.yaml
  100. 1 6
      custom_components/tuya_local/devices/kesser_infrared_wall_heater.yaml

+ 1 - 2
custom_components/tuya_local/devices/AlecoAir_D25_Traditio.yaml

@@ -92,9 +92,8 @@ secondary_entities:
             value: false
           - value: true
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
-    icon: "mdi:hand-back-right-off"
     dps:
       - id: 16
         type: boolean

+ 13 - 0
custom_components/tuya_local/devices/README.md

@@ -77,6 +77,19 @@ behaviour.
 For most entities, it will alter the default icon, and for binary sensors
 also the state that off and on values translate to in the UI.
 
+### `translation_key` / `translation_only_key`
+
+*Optional*
+
+A key used to define strings and icons for this entity. If this is used,
+the name can be omited and instead defined in the translations files.
+
+`translation_key` will be used to generate IDs when there is no name defined.
+If the intention is to have an unnamed entity, or to inherit from class, then
+use `translation_only_key` instead (this is mostly useful to retain
+backward compatibility where `translation_key` is used to define icons and
+attribute strings but not the entity name.
+
 ### `category`
 
 *Optional.*

+ 1 - 6
custom_components/tuya_local/devices/alecoair_d12_dehumidifier.yaml

@@ -104,17 +104,12 @@ secondary_entities:
           - dps_val: true
             icon: "mdi:sleep"
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 16
         type: boolean
         name: lock
-        mapping:
-          - dps_val: false
-            icon: "mdi:hand-back-right"
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
   - entity: binary_sensor
     class: problem
     name: Tank full

+ 1 - 6
custom_components/tuya_local/devices/alecoair_d12_home_dehumidifier.yaml

@@ -77,17 +77,12 @@ secondary_entities:
           - dps_val: null
             invalid: true
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 7
         type: boolean
         name: lock
-        mapping:
-          - dps_val: false
-            icon: "mdi:hand-back-right"
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
   - entity: select
     name: Countdown
     icon: "mdi:timer"

+ 1 - 6
custom_components/tuya_local/devices/alecoair_d14_dehumidifier.yaml

@@ -107,17 +107,12 @@ secondary_entities:
             value: false
           - value: true
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 14
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: select
     name: Timer
     icon: "mdi:timer"

+ 1 - 6
custom_components/tuya_local/devices/alecoair_d16_dehumidifier.yaml

@@ -134,17 +134,12 @@ secondary_entities:
             value: false
           - value: true
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 14
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: select
     name: Timer
     icon: "mdi:timer"

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

@@ -1,7 +1,7 @@
 name: Anko fan
 primary_entity:
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
     - id: 1
       type: boolean

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

@@ -3,7 +3,7 @@ products:
   - id: rklgm99ldz4unh5s
 primary_entity:
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
     - id: 1
       name: switch

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

@@ -4,7 +4,7 @@ products:
     name: Arlec 19-speed industrial wall fan
 primary_entity:
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
     - id: 1
       name: switch

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

@@ -4,7 +4,7 @@ products:
     name: Arlec 45cm black floor fan
 primary_entity:
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
     - id: 1
       name: switch

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

@@ -1,7 +1,7 @@
 name: ARLEC Grid Connect Fan
 primary_entity:
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
     - id: 1
       name: switch

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

@@ -1,7 +1,7 @@
 name: ARLEC fan with light
 primary_entity:
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
     - id: 1
       name: switch

+ 1 - 2
custom_components/tuya_local/devices/arlec_panel_heater.yaml

@@ -44,8 +44,7 @@ primary_entity:
 
 secondary_entities:
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 6

+ 1 - 2
custom_components/tuya_local/devices/arlec_panel_heater_v2.yaml

@@ -39,8 +39,7 @@ primary_entity:
           value: unknown
 secondary_entities:
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 7

+ 1 - 2
custom_components/tuya_local/devices/arlec_pb88uha_s2_switch.yaml

@@ -108,8 +108,7 @@ secondary_entities:
             value: "Off"
   - entity: lock
     category: config
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     dps:
       - id: 41
         name: lock

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

@@ -2,7 +2,7 @@ name: Aspen fan
 legacy_type: aspen_fan
 primary_entity:
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
     - id: 1
       type: boolean

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

@@ -4,7 +4,7 @@ products:
     name: Atomi 52 inch ceiling fan
 primary_entity:
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
     - id: 60
       type: boolean

+ 1 - 2
custom_components/tuya_local/devices/avatto_me81_thermostat.yaml

@@ -122,8 +122,7 @@ secondary_entities:
         name: button
         optional: true
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 40

+ 2 - 8
custom_components/tuya_local/devices/avatto_wt100_thermostat.yaml

@@ -4,7 +4,7 @@ products:
     name: Avatto WT200W-EH
 primary_entity:
   entity: climate
-  translation_key: thermostat
+  translation_only_key: thermostat
   dps:
     - id: 1
       name: hvac_mode
@@ -74,18 +74,12 @@ primary_entity:
       type: integer
 secondary_entities:
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 8
         name: lock
         type: boolean
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: switch
     name: Sound
     category: config

+ 1 - 6
custom_components/tuya_local/devices/awow_th213_thermostat.yaml

@@ -83,17 +83,12 @@ primary_entity:
       name: unknown_110
 secondary_entities:
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 6
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: sensor
     name: External temperature
     class: temperature

+ 1 - 6
custom_components/tuya_local/devices/awow_th213v2_thermostat.yaml

@@ -55,17 +55,12 @@ primary_entity:
       name: unknown_116
 secondary_entities:
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 6
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: sensor
     name: External temperature
     class: temperature

+ 1 - 6
custom_components/tuya_local/devices/beca_bac002_thermostat_c.yaml

@@ -62,17 +62,12 @@ primary_entity:
           value: low
 secondary_entities:
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 6
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: select
     name: Schedule
     icon: "mdi:calendar-clock"

+ 2 - 7
custom_components/tuya_local/devices/beca_bhp6000_thermostat_c.yaml

@@ -3,7 +3,7 @@ products:
   - id: drwezxukumr9ohuh
 primary_entity:
   entity: climate
-  translation_key: thermostat
+  translation_only_key: thermostat
   dps:
     - id: 2
       name: temperature
@@ -51,17 +51,12 @@ primary_entity:
           value: "on"
 secondary_entities:
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 7
         name: lock
         type: boolean
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: light
     name: Display
     category: config

+ 2 - 7
custom_components/tuya_local/devices/beca_bhp6000_thermostat_f.yaml

@@ -4,7 +4,7 @@ products:
 legacy_type: beca_bhp6000_thermostat
 primary_entity:
   entity: climate
-  translation_key: thermostat
+  translation_only_key: thermostat
   dps:
     - id: 2
       name: temperature
@@ -52,17 +52,12 @@ primary_entity:
           value: "on"
 secondary_entities:
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 7
         name: lock
         type: boolean
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: light
     name: Display
     category: config

+ 2 - 7
custom_components/tuya_local/devices/beca_bhp6000_thermostat_mapped.yaml

@@ -3,7 +3,7 @@ products:
   - id: drwezxukumr9ohuh
 primary_entity:
   entity: climate
-  translation_key: thermostat
+  translation_only_key: thermostat
   dps:
     - id: 2
       name: temperature
@@ -382,17 +382,12 @@ primary_entity:
           value: "on"
 secondary_entities:
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 7
         name: lock
         type: boolean
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: light
     name: Display
     category: config

+ 1 - 6
custom_components/tuya_local/devices/beca_bht002_thermostat_c.yaml

@@ -57,17 +57,12 @@ primary_entity:
       name: unknown_104
 secondary_entities:
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 6
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: sensor
     name: External temperature
     class: temperature

+ 1 - 6
custom_components/tuya_local/devices/beca_bht6000_thermostat_c.yaml

@@ -56,17 +56,12 @@ primary_entity:
       name: unknown_104
 secondary_entities:
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 6
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: sensor
     name: External temperature
     class: temperature

+ 1 - 2
custom_components/tuya_local/devices/beca_zht002_thermostat_c.yaml

@@ -36,8 +36,7 @@ primary_entity:
 
 secondary_entities:
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 40

+ 2 - 7
custom_components/tuya_local/devices/beok_tgm50_thermostat.yaml

@@ -4,7 +4,7 @@ products:
     name: Beok TGM50-WIFI-WP
 primary_entity:
   entity: climate
-  translation_key: thermostat
+  translation_only_key: thermostat
   dps:
     - id: 1
       name: hvac_mode
@@ -74,17 +74,12 @@ primary_entity:
       type: integer
 secondary_entities:
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 9
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: binary_sensor
     name: Fault
     category: diagnostic

+ 2 - 7
custom_components/tuya_local/devices/beok_tgr81_thermostat_c.yaml

@@ -6,7 +6,7 @@ products:
     name: Avatto ME81 thermostat
 primary_entity:
   entity: climate
-  translation_key: thermostat
+  translation_only_key: thermostat
   dps:
     - id: 1
       name: hvac_mode
@@ -89,18 +89,13 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 40
         optional: true
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: select
     name: Sensor selection
     category: config

+ 2 - 7
custom_components/tuya_local/devices/beok_tol47_thermostat.yaml

@@ -1,7 +1,7 @@
 name: Beok TOL47 thermostat
 primary_entity:
   entity: climate
-  translation_key: thermostat
+  translation_only_key: thermostat
   dps:
     - id: 1
       type: boolean
@@ -64,17 +64,12 @@ primary_entity:
       name: fault_code
 secondary_entities:
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 8
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: switch
     name: Sound
     category: config

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

@@ -1,7 +1,7 @@
 name: Beok TR8B thermostat
 primary_entity:
   entity: climate
-  translation_key: combo_floor
+  translation_only_key: combo_floor
   dps:
     - id: 1
       type: boolean
@@ -211,8 +211,7 @@ secondary_entities:
         type: string
         name: schedule
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 40

+ 1 - 6
custom_components/tuya_local/devices/beok_tr9b_thermostat.yaml

@@ -115,17 +115,12 @@ secondary_entities:
           - dps_val: close
             value: false
   - entity: lock
-    name: "Child lock"
+    translation_key: "child_lock"
     category: config
     dps:
       - id: 40
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: binary_sensor
     name: Error
     category: diagnostic

+ 1 - 6
custom_components/tuya_local/devices/betterlife_bl1500_heater.yaml

@@ -40,17 +40,12 @@ primary_entity:
           value: eco
 secondary_entities:
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 7
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: select
     name: Timer
     icon: "mdi:timer"

+ 1 - 2
custom_components/tuya_local/devices/bht002_galw_thermostat.yaml

@@ -77,8 +77,7 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 40

+ 1 - 2
custom_components/tuya_local/devices/blitzwolf_bwshp6_smartplug.yaml

@@ -124,8 +124,7 @@ secondary_entities:
           - dps_val: none
             value: "Off"
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 40

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

@@ -50,8 +50,7 @@ primary_entity:
           value: F
 secondary_entities:
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 6

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

@@ -233,8 +233,7 @@ secondary_entities:
           min: 0
           max: 99
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 40

+ 1 - 6
custom_components/tuya_local/devices/breville_lad208_dehumidifier.yaml

@@ -147,17 +147,12 @@ secondary_entities:
           - dps_val: true
             icon: "mdi:sleep"
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 7
         type: boolean
         name: lock
-        mapping:
-          - dps_val: false
-            icon: "mdi:hand-back-right"
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
   - entity: binary_sensor
     class: problem
     name: Tank full

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

@@ -3,7 +3,7 @@ products:
   - id: "emh1sylyfw7n2b50"
 primary_entity:
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   icon: "mdi:air-purifier"
   dps:
     - id: 1

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

@@ -3,7 +3,7 @@ products:
   - id: tltdxtehttjbkjni
 primary_entity:
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
     - id: 1
       name: switch

+ 1 - 2
custom_components/tuya_local/devices/bvf_cp1_heater.yaml

@@ -71,8 +71,7 @@ secondary_entities:
           min: -9
           max: 9
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 40

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

@@ -1,7 +1,7 @@
 name: BWT FI 45 pool heatpump
 primary_entity:
   entity: climate
-  translation_key: pool_heatpump
+  translation_only_key: pool_heatpump
   dps:
     - id: 1
       name: hvac_mode

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

@@ -4,7 +4,7 @@ products:
     name: Cadence ultrasonic aroma diffuser
 primary_entity:
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
     - id: 2
       name: switch

+ 1 - 6
custom_components/tuya_local/devices/calex_convector_heater.yaml

@@ -61,17 +61,12 @@ primary_entity:
           value: activity
 secondary_entities:
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 7
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: select
     name: Timer
     icon: "mdi:timer"

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

@@ -4,7 +4,7 @@ products:
     name: Carro (Qizheng) Fan Light
 primary_entity:
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
     - id: 1
       type: boolean

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

@@ -4,7 +4,7 @@ products:
     name: Casafan ECO Neo III
 primary_entity:
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
     - id: 1
       type: boolean

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

@@ -4,7 +4,7 @@ products:
     name: Cecotec AQUA CONNECTED
 primary_entity:
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
     - id: 1
       type: boolean

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

@@ -4,7 +4,7 @@ products:
     name: JST-DC-WYfen
 primary_entity:
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
     - id: 60
       type: boolean

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

@@ -4,7 +4,7 @@ products:
     name: Cooper and Hunter Nordic Evo NG
 primary_entity:
   entity: climate
-  translation_key: aircon_extra
+  translation_only_key: aircon_extra
   dps:
     - id: 1
       name: hvac_mode
@@ -170,9 +170,8 @@ secondary_entities:
         name: switch
         type: boolean
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
-    icon: "mdi:hand-right-back-off"
     dps:
       - id: 14
         name: lock

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

@@ -1,7 +1,7 @@
 name: Daizuki Heatpump (F)
 primary_entity:
   entity: climate
-  translation_key: aircon_extra
+  translation_only_key: aircon_extra
   dps:
     - id: 1
       type: boolean

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

@@ -97,9 +97,8 @@ secondary_entities:
         name: switch
         type: boolean
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
-    icon: "mdi:hand-right-back-off"
     dps:
       - id: 14
         name: lock

+ 1 - 6
custom_components/tuya_local/devices/devola_patio_heater.yaml

@@ -69,17 +69,12 @@ primary_entity:
       hidden: true
 secondary_entities:
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 7
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: sensor
     name: Power level
     category: diagnostic

+ 1 - 6
custom_components/tuya_local/devices/dry_pury_evo_dehumidifier.yaml

@@ -76,17 +76,12 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 16
         type: boolean
         name: lock
-        mapping:
-          - dps_val: false
-            icon: "mdi:hand-back-right"
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
   - entity: binary_sensor
     class: problem
     name: Tank full

+ 1 - 2
custom_components/tuya_local/devices/dual_power_monitor_smartplugv2.yaml

@@ -148,8 +148,7 @@ secondary_entities:
           - dps_val: null
             invalid: true
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 41

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

@@ -4,7 +4,7 @@ products:
     name: Duux Whisper Flex
 primary_entity:
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
     - id: 1
       type: boolean

+ 2 - 7
custom_components/tuya_local/devices/ecostrad_iq_heating_element.yaml

@@ -1,7 +1,7 @@
 name: Ecostrad iQ heating element
 primary_entity:
   entity: climate
-  translation_key: thermostat
+  translation_only_key: thermostat
   icon: "mdi:radiator"
   dps:
     - id: 1
@@ -61,17 +61,12 @@ primary_entity:
 
 secondary_entities:
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 40
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: select
     name: Open window detection
     category: config

+ 1 - 6
custom_components/tuya_local/devices/ecostrad_iqceramic_radiator.yaml

@@ -48,17 +48,12 @@ primary_entity:
       type: string
 secondary_entities:
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 40
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: select
     name: Open window detection
     category: config

+ 1 - 2
custom_components/tuya_local/devices/eeese_anna_dehumidifier.yaml

@@ -107,8 +107,7 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 16

+ 1 - 2
custom_components/tuya_local/devices/eeese_carl_dehumidifier.yaml

@@ -70,8 +70,7 @@ secondary_entities:
             value: false
           - value: true
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 14

+ 1 - 2
custom_components/tuya_local/devices/eeese_otto_dehumidifier.yaml

@@ -90,8 +90,7 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 16

+ 1 - 6
custom_components/tuya_local/devices/eesee_adam_dehumidifier.yaml

@@ -88,17 +88,12 @@ secondary_entities:
             value: false
           - value: true
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 14
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: select
     name: Timer
     icon: "mdi:timer"

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

@@ -59,8 +59,7 @@ primary_entity:
       type: string
 secondary_entities:
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 6

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

@@ -42,7 +42,7 @@ primary_entity:
         - step: 5
 secondary_entities:
   - entity: fan
-    translation_key: fan_with_presets
+    translation_only_key: fan_with_presets
     dps:
       - id: 1
         type: boolean

+ 2 - 7
custom_components/tuya_local/devices/electriq_cd25pro_dehumidifier.yaml

@@ -43,7 +43,7 @@ primary_entity:
         - step: 5
 secondary_entities:
   - entity: fan
-    translation_key: fan_with_presets
+    translation_only_key: fan_with_presets
     dps:
       - id: 1
         type: boolean
@@ -82,17 +82,12 @@ secondary_entities:
         name: switch
         type: boolean
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 7
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: sensor
     class: humidity
     name: Current humidity

+ 1 - 2
custom_components/tuya_local/devices/electriq_pd45e_dehumidifier.yaml

@@ -61,8 +61,7 @@ secondary_entities:
         type: boolean
         name: oscillate
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 7

+ 1 - 6
custom_components/tuya_local/devices/essentials_purifier.yaml

@@ -17,17 +17,12 @@ secondary_entities:
         name: sensor
         unit: "%"
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 7
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: select
     name: Light
     category: config

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

@@ -174,8 +174,7 @@ secondary_entities:
         unit: "%"
         class: measurement
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 40

+ 3 - 4
custom_components/tuya_local/devices/etop_fcu_thermostat.yaml

@@ -133,11 +133,10 @@ secondary_entities:
   # The following DPs are available but don't seem to
   # actually do anything
   ############################################################
-  - entity: switch
-    name: "Child Lock"
+  - entity: lock
+    translation_key: child_lock
     category: config
-    icon: "mdi:hand-back-right-off"
     dps:
       - id: 7
-        name: switch
+        name: lock
         type: boolean

+ 1 - 6
custom_components/tuya_local/devices/etop_ht_thermostat.yaml

@@ -90,17 +90,12 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: lock
-    name: "Child lock"
+    translation_key: child_lock
     category: config
     dps:
       - id: 40
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: number
     name: "Setpoint min"
     category: config

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

@@ -4,7 +4,7 @@ products:
     name: Evotherm ETI series
 primary_entity:
   entity: climate
-  translation_key: pool_heatpump
+  translation_only_key: pool_heatpump
   dps:
     - id: 1
       name: hvac_mode

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

@@ -4,7 +4,7 @@ products:
     name: Fisher Summer Air Conditioner
 primary_entity:
   entity: climate
-  translation_key: aircon_extra
+  translation_only_key: aircon_extra
   dps:
     - id: 1
       name: hvac_mode

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

@@ -4,7 +4,7 @@ products:
     name: Goldair 101cm Tower Fan
 primary_entity:
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
     - id: 1
       type: boolean

+ 1 - 6
custom_components/tuya_local/devices/goldair_dehumidifier.yaml

@@ -113,17 +113,12 @@ secondary_entities:
             value: false
             icon: "mdi:led-off"
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 7
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: switch
     name: Air clean
     icon: "mdi:air-purifier"

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

@@ -2,7 +2,7 @@ name: Goldair fan
 legacy_type: fan
 primary_entity:
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
     - id: 1
       type: boolean

+ 1 - 6
custom_components/tuya_local/devices/goldair_geco_heater.yaml

@@ -33,17 +33,12 @@ primary_entity:
       name: error
 secondary_entities:
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 2
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: number
     name: Timer
     category: config

+ 1 - 6
custom_components/tuya_local/devices/goldair_gpcv_heater.yaml

@@ -41,17 +41,12 @@ primary_entity:
       name: preset_mode
 secondary_entities:
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 2
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: number
     name: Timer
     icon: "mdi:timer"

+ 1 - 2
custom_components/tuya_local/devices/goldair_gpdh340_dehumidifier.yaml

@@ -96,8 +96,7 @@ secondary_entities:
           - dps_val: false
             icon: "mdi:numeric-off"
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 106

+ 2 - 7
custom_components/tuya_local/devices/goldair_gpph_heater.yaml

@@ -2,7 +2,7 @@ name: Goldair GPPH heater
 legacy_type: heater
 primary_entity:
   entity: climate
-  translation_key: swing_as_powerlevel
+  translation_only_key: swing_as_powerlevel
   dps:
     - id: 1
       type: boolean
@@ -137,17 +137,12 @@ secondary_entities:
             icon: "mdi:led-on"
         name: switch
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 6
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: number
     name: Timer
     icon: "mdi:timer"

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

@@ -4,7 +4,7 @@ products:
     name: Goldair Platinum Tower Fan
 primary_entity:
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
     - id: 1
       type: boolean

+ 1 - 2
custom_components/tuya_local/devices/greenmigo_alpha_q25_pro_wifi.yaml

@@ -135,8 +135,7 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 16

+ 1 - 6
custom_components/tuya_local/devices/grid_connect_usb_double_power_point.yaml

@@ -13,17 +13,12 @@ primary_entity:
       type: integer
 secondary_entities:
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 40
         name: lock
         type: boolean
-        mapping:
-          - dps_val: true
-            icon: "mdi:account-lock"
-          - dps_val: false
-            icon: "mdi:account"
   - entity: switch
     class: outlet
     name: Outlet 1

+ 1 - 2
custom_components/tuya_local/devices/grid_connect_usb_power_point.yaml

@@ -59,9 +59,8 @@ secondary_entities:
           - dps_val: last
             value: Keep state
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
-    icon: "mdi:hand-back-right-off"
     dps:
       - id: 41
         type: boolean

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

@@ -92,8 +92,7 @@ secondary_entities:
           - dps_val: "100"
             value: 255
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 7

+ 2 - 7
custom_components/tuya_local/devices/himox_h05_purifier.yaml

@@ -1,7 +1,7 @@
 name: Himox H05 air purifier
 primary_entity:
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
     - id: 1
       type: boolean
@@ -38,17 +38,12 @@ secondary_entities:
         name: sensor
         unit: "%"
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 7
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: button
     name: Filter reset
     class: restart

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

@@ -4,7 +4,7 @@ products:
     name: Hiper T3
 primary_entity:
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
     - id: 1
       name: switch

+ 1 - 2
custom_components/tuya_local/devices/hjz_radiator.yaml

@@ -34,8 +34,7 @@ primary_entity:
 secondary_entities:
   - entity: lock
     category: config
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     dps:
       - id: 7
         type: boolean

+ 1 - 2
custom_components/tuya_local/devices/hombli_thermostatic_radiator_valve.yaml

@@ -83,8 +83,7 @@ secondary_entities:
           min: -60
           max: 60
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 40

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

@@ -3,7 +3,7 @@ products:
   - id: sferhht3hjkc942e
 primary_entity:
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
     - id: 1
       type: boolean
@@ -50,9 +50,8 @@ secondary_entities:
         name: sensor
         unit: "%"
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
-    icon: "mdi:hand-back-right-off"
     dps:
       - id: 7
         type: boolean

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

@@ -3,7 +3,7 @@ products:
   - id: xhx9h0duu9b9bobs
 primary_entity:
   entity: climate
-  translation_key: thermostat
+  translation_only_key: thermostat
   dps:
     - id: 1
       type: boolean
@@ -107,8 +107,7 @@ primary_entity:
       optional: true
 secondary_entities:
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 7

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

@@ -4,7 +4,7 @@ products:
     name: HY08WE-4
 primary_entity:
   entity: climate
-  translation_key: thermostat
+  translation_only_key: thermostat
   dps:
     - id: 1
       type: boolean
@@ -93,17 +93,12 @@ primary_entity:
       name: min_temperature
 secondary_entities:
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 6
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: sensor
     name: External temperature
     class: temperature

+ 1 - 6
custom_components/tuya_local/devices/hyundai_sahara_dehumidifier.yaml

@@ -87,17 +87,12 @@ secondary_entities:
         unit: C
         class: measurement
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 16
         type: boolean
         name: lock
-        mapping:
-          - dps_val: false
-            icon: "mdi:hand-back-right"
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
   - entity: binary_sensor
     name: Tank
     class: problem

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

@@ -4,7 +4,7 @@ products:
     name: Immax NEO LITE VENTO Smart
 primary_entity:
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
     - id: 1
       type: boolean

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

@@ -5,7 +5,7 @@ products:
     name: Inkbird ITC-306A V3.0
 primary_entity:
   entity: climate
-  translation_key: thermo_switch
+  translation_only_key: thermo_switch
   dps:
     - id: 12
       type: bitfield

+ 1 - 2
custom_components/tuya_local/devices/inow_heater_element.yaml

@@ -42,8 +42,7 @@ primary_entity:
           value: "2 hours"
 secondary_entities:
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 7

+ 1 - 2
custom_components/tuya_local/devices/inow_heater_element_v2.yaml

@@ -36,8 +36,7 @@ primary_entity:
           value: Radiator
 secondary_entities:
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 108

+ 1 - 6
custom_components/tuya_local/devices/inventor_atmospherexl_dehumidifier.yaml

@@ -153,17 +153,12 @@ secondary_entities:
         name: sensor
         unit: ugm3
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 16
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: select
     name: Timer
     category: config

+ 1 - 6
custom_components/tuya_local/devices/jjpro_jpd02_dehumidifier.yaml

@@ -86,17 +86,12 @@ secondary_entities:
         unit: C
         class: measurement
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 16
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: binary_sensor
     name: Tank
     class: problem

+ 1 - 2
custom_components/tuya_local/devices/juskys_oh125bw2_radiator.yaml

@@ -35,8 +35,7 @@ primary_entity:
       name: fault_code
 secondary_entities:
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     dps:
       - id: 7

+ 1 - 6
custom_components/tuya_local/devices/kesser_infrared_wall_heater.yaml

@@ -40,17 +40,12 @@ primary_entity:
           icon: "mdi:radiator"
 secondary_entities:
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     dps:
       - id: 7
         type: boolean
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: number
     name: Calibration offset
     category: config

Some files were not shown because too many files changed in this diff