Forráskód Böngészése

Child lock: Move name and icon to translations

Issue #1579
Jason Rumney 2 éve
szülő
commit
bbafb21347
100 módosított fájl, 130 hozzáadás és 346 törlés
  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: false
           - value: true
           - value: true
   - entity: lock
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     category: config
-    icon: "mdi:hand-back-right-off"
     dps:
     dps:
       - id: 16
       - id: 16
         type: boolean
         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
 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.
 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`
 ### `category`
 
 
 *Optional.*
 *Optional.*

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

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

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

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

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

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

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

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

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

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

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

@@ -3,7 +3,7 @@ products:
   - id: rklgm99ldz4unh5s
   - id: rklgm99ldz4unh5s
 primary_entity:
 primary_entity:
   entity: fan
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
   dps:
     - id: 1
     - id: 1
       name: switch
       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
     name: Arlec 19-speed industrial wall fan
 primary_entity:
 primary_entity:
   entity: fan
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
   dps:
     - id: 1
     - id: 1
       name: switch
       name: switch

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -61,17 +61,12 @@ primary_entity:
           value: activity
           value: activity
 secondary_entities:
 secondary_entities:
   - entity: lock
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     category: config
     dps:
     dps:
       - id: 7
       - id: 7
         type: boolean
         type: boolean
         name: lock
         name: lock
-        mapping:
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
-          - dps_val: false
-            icon: "mdi:hand-back-right"
   - entity: select
   - entity: select
     name: Timer
     name: Timer
     icon: "mdi: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
     name: Carro (Qizheng) Fan Light
 primary_entity:
 primary_entity:
   entity: fan
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
   dps:
     - id: 1
     - id: 1
       type: boolean
       type: boolean

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

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

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

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

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

@@ -4,7 +4,7 @@ products:
     name: JST-DC-WYfen
     name: JST-DC-WYfen
 primary_entity:
 primary_entity:
   entity: fan
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
   dps:
     - id: 60
     - id: 60
       type: boolean
       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
     name: Cooper and Hunter Nordic Evo NG
 primary_entity:
 primary_entity:
   entity: climate
   entity: climate
-  translation_key: aircon_extra
+  translation_only_key: aircon_extra
   dps:
   dps:
     - id: 1
     - id: 1
       name: hvac_mode
       name: hvac_mode
@@ -170,9 +170,8 @@ secondary_entities:
         name: switch
         name: switch
         type: boolean
         type: boolean
   - entity: lock
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     category: config
-    icon: "mdi:hand-right-back-off"
     dps:
     dps:
       - id: 14
       - id: 14
         name: lock
         name: lock

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -174,8 +174,7 @@ secondary_entities:
         unit: "%"
         unit: "%"
         class: measurement
         class: measurement
   - entity: lock
   - entity: lock
-    name: Child lock
-    icon: "mdi:hand-back-right-off"
+    translation_key: child_lock
     category: config
     category: config
     dps:
     dps:
       - id: 40
       - 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
   # The following DPs are available but don't seem to
   # actually do anything
   # actually do anything
   ############################################################
   ############################################################
-  - entity: switch
-    name: "Child Lock"
+  - entity: lock
+    translation_key: child_lock
     category: config
     category: config
-    icon: "mdi:hand-back-right-off"
     dps:
     dps:
       - id: 7
       - id: 7
-        name: switch
+        name: lock
         type: boolean
         type: boolean

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

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

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

@@ -4,7 +4,7 @@ products:
     name: Evotherm ETI series
     name: Evotherm ETI series
 primary_entity:
 primary_entity:
   entity: climate
   entity: climate
-  translation_key: pool_heatpump
+  translation_only_key: pool_heatpump
   dps:
   dps:
     - id: 1
     - id: 1
       name: hvac_mode
       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
     name: Fisher Summer Air Conditioner
 primary_entity:
 primary_entity:
   entity: climate
   entity: climate
-  translation_key: aircon_extra
+  translation_only_key: aircon_extra
   dps:
   dps:
     - id: 1
     - id: 1
       name: hvac_mode
       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
     name: Goldair 101cm Tower Fan
 primary_entity:
 primary_entity:
   entity: fan
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
   dps:
     - id: 1
     - id: 1
       type: boolean
       type: boolean

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -13,17 +13,12 @@ primary_entity:
       type: integer
       type: integer
 secondary_entities:
 secondary_entities:
   - entity: lock
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     category: config
     dps:
     dps:
       - id: 40
       - id: 40
         name: lock
         name: lock
         type: boolean
         type: boolean
-        mapping:
-          - dps_val: true
-            icon: "mdi:account-lock"
-          - dps_val: false
-            icon: "mdi:account"
   - entity: switch
   - entity: switch
     class: outlet
     class: outlet
     name: Outlet 1
     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
           - dps_val: last
             value: Keep state
             value: Keep state
   - entity: lock
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     category: config
-    icon: "mdi:hand-back-right-off"
     dps:
     dps:
       - id: 41
       - id: 41
         type: boolean
         type: boolean

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -87,17 +87,12 @@ secondary_entities:
         unit: C
         unit: C
         class: measurement
         class: measurement
   - entity: lock
   - entity: lock
-    name: Child lock
+    translation_key: child_lock
     category: config
     category: config
     dps:
     dps:
       - id: 16
       - id: 16
         type: boolean
         type: boolean
         name: lock
         name: lock
-        mapping:
-          - dps_val: false
-            icon: "mdi:hand-back-right"
-          - dps_val: true
-            icon: "mdi:hand-back-right-off"
   - entity: binary_sensor
   - entity: binary_sensor
     name: Tank
     name: Tank
     class: problem
     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
     name: Immax NEO LITE VENTO Smart
 primary_entity:
 primary_entity:
   entity: fan
   entity: fan
-  translation_key: fan_with_presets
+  translation_only_key: fan_with_presets
   dps:
   dps:
     - id: 1
     - id: 1
       type: boolean
       type: boolean

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott