Просмотр исходного кода

Add translation for Time remaining sensors.

Issue #1708
Jason Rumney 1 год назад
Родитель
Сommit
acbf5cc25e
100 измененных файлов с 162 добавлено и 137 удалено
  1. 1 1
      custom_components/tuya_local/devices/alecoair_d12_home_dehumidifier.yaml
  2. 0 3
      custom_components/tuya_local/devices/anko_fan.yaml
  3. 1 1
      custom_components/tuya_local/devices/arlec_12speed_tower_fan.yaml
  4. 0 3
      custom_components/tuya_local/devices/arlec_fan.yaml
  5. 1 1
      custom_components/tuya_local/devices/atomi_ceramic_heater.yaml
  6. 1 1
      custom_components/tuya_local/devices/aubess_rainpoint_irrigation_system.yaml
  7. 1 1
      custom_components/tuya_local/devices/avatto_roller_blinds.yaml
  8. 1 1
      custom_components/tuya_local/devices/betterlife_bl1500_heater.yaml
  9. 1 1
      custom_components/tuya_local/devices/breville_airdynamic3d_fan.yaml
  10. 1 1
      custom_components/tuya_local/devices/breville_easyair_purifier.yaml
  11. 1 1
      custom_components/tuya_local/devices/breville_smart_air_viral_protect_plus.yaml
  12. 1 1
      custom_components/tuya_local/devices/breville_smartairconnect_purifier.yaml
  13. 1 1
      custom_components/tuya_local/devices/calex_convector_heater.yaml
  14. 1 1
      custom_components/tuya_local/devices/carson_cb.yaml
  15. 1 1
      custom_components/tuya_local/devices/cleanair_604b_humidifier.yaml
  16. 1 1
      custom_components/tuya_local/devices/cleanair_605b_humidifier.yaml
  17. 1 1
      custom_components/tuya_local/devices/ditua_dt1522yn_aromadiffuser.yaml
  18. 1 1
      custom_components/tuya_local/devices/duux_blizzard_portable_aircon.yaml
  19. 1 1
      custom_components/tuya_local/devices/duux_whisper_fan.yaml
  20. 1 1
      custom_components/tuya_local/devices/dynasty_btx_fireplace.yaml
  21. 1 1
      custom_components/tuya_local/devices/eanons_humidifier.yaml
  22. 1 1
      custom_components/tuya_local/devices/ebac_dj4000_dehumidifier.yaml
  23. 1 1
      custom_components/tuya_local/devices/electric_panel_heater.yaml
  24. 1 1
      custom_components/tuya_local/devices/essentials_purifier.yaml
  25. 1 1
      custom_components/tuya_local/devices/etersky_aroma_diffuser.yaml
  26. 1 1
      custom_components/tuya_local/devices/fanco_ecosilentdeluxe.yaml
  27. 1 1
      custom_components/tuya_local/devices/gratkit_filament_dryer.yaml
  28. 1 1
      custom_components/tuya_local/devices/herschel_irheater.yaml
  29. 1 1
      custom_components/tuya_local/devices/himox_h06_purifier.yaml
  30. 1 1
      custom_components/tuya_local/devices/hiper_bladeless_fan.yaml
  31. 1 1
      custom_components/tuya_local/devices/holman_wx1_taptimer.yaml
  32. 1 1
      custom_components/tuya_local/devices/holman_wx8_irrigation_controller.yaml
  33. 1 1
      custom_components/tuya_local/devices/hotshot2000_heater.yaml
  34. 1 1
      custom_components/tuya_local/devices/hyd_weair_plus_fan.yaml
  35. 1 1
      custom_components/tuya_local/devices/inkbird_sousvide_cooker.yaml
  36. 1 1
      custom_components/tuya_local/devices/inventor_atmospherexl_dehumidifier.yaml
  37. 1 1
      custom_components/tuya_local/devices/kennedy_fireplace.yaml
  38. 1 1
      custom_components/tuya_local/devices/klarstein_wonderwall_air.yaml
  39. 1 1
      custom_components/tuya_local/devices/klarstein_wonderwall_irheater.yaml
  40. 1 1
      custom_components/tuya_local/devices/kogan_air_purifier.yaml
  41. 1 1
      custom_components/tuya_local/devices/kogan_bladeless_fan.yaml
  42. 1 1
      custom_components/tuya_local/devices/lehmann_lhohc2013c_radiator.yaml
  43. 1 1
      custom_components/tuya_local/devices/m027_curtain.yaml
  44. 1 1
      custom_components/tuya_local/devices/mantra_fan.yaml
  45. 1 1
      custom_components/tuya_local/devices/maxcio_aromadiffuser.yaml
  46. 1 1
      custom_components/tuya_local/devices/mellerware_comfy_radiator.yaml
  47. 1 1
      custom_components/tuya_local/devices/modernflames_orion_fireplace.yaml
  48. 1 1
      custom_components/tuya_local/devices/momcozy_white_noise_machine_v2.yaml
  49. 1 1
      custom_components/tuya_local/devices/nac_ap470_purifier.yaml
  50. 1 1
      custom_components/tuya_local/devices/nashone_mts700wb_thermostat.yaml
  51. 1 1
      custom_components/tuya_local/devices/nedis_ptc_fan_heater.yaml
  52. 1 1
      custom_components/tuya_local/devices/nx_100ap_air_purifier.yaml
  53. 1 2
      custom_components/tuya_local/devices/parkside_plgs2012a1_smart_charger.yaml
  54. 1 1
      custom_components/tuya_local/devices/plikc_neve_thermostat.yaml
  55. 1 1
      custom_components/tuya_local/devices/poiema_one_purifier.yaml
  56. 1 1
      custom_components/tuya_local/devices/probreeze_pb20.yaml
  57. 1 1
      custom_components/tuya_local/devices/qh_gd_elegant_heater.yaml
  58. 1 1
      custom_components/tuya_local/devices/qlima_d820a_dehumidifier.yaml
  59. 1 1
      custom_components/tuya_local/devices/qoto_03_sprinkler.yaml
  60. 1 1
      custom_components/tuya_local/devices/qoto_05_water_valve.yaml
  61. 1 1
      custom_components/tuya_local/devices/shinco_30d_dehumidifier.yaml
  62. 1 1
      custom_components/tuya_local/devices/silvercrest_coffee_maker.yaml
  63. 1 1
      custom_components/tuya_local/devices/silvercrest_kettle.yaml
  64. 1 1
      custom_components/tuya_local/devices/smart_watering_device.yaml
  65. 1 1
      custom_components/tuya_local/devices/sonninkonig_eco_elegance_heater.yaml
  66. 1 1
      custom_components/tuya_local/devices/sulion_ceiling_fan.yaml
  67. 1 1
      custom_components/tuya_local/devices/taurus_agadir_heater.yaml
  68. 1 1
      custom_components/tuya_local/devices/tesla_aroma_diffuser.yaml
  69. 1 1
      custom_components/tuya_local/devices/tesla_humidifier.yaml
  70. 1 1
      custom_components/tuya_local/devices/tesla_xl_dehumidifier.yaml
  71. 1 1
      custom_components/tuya_local/devices/ultenic_air_fryer.yaml
  72. 1 1
      custom_components/tuya_local/devices/valehaus_syzn119_tow_w.yaml
  73. 1 1
      custom_components/tuya_local/devices/vork_vk6067aw_purifier.yaml
  74. 1 7
      custom_components/tuya_local/devices/wetair_wch750_heater.yaml
  75. 1 1
      custom_components/tuya_local/helpers/mixin.py
  76. 5 0
      custom_components/tuya_local/translations/bg.json
  77. 5 0
      custom_components/tuya_local/translations/cz.json
  78. 5 0
      custom_components/tuya_local/translations/en.json
  79. 5 0
      custom_components/tuya_local/translations/es.json
  80. 5 0
      custom_components/tuya_local/translations/fr.json
  81. 5 0
      custom_components/tuya_local/translations/hu.json
  82. 5 0
      custom_components/tuya_local/translations/id.json
  83. 5 0
      custom_components/tuya_local/translations/it.json
  84. 5 0
      custom_components/tuya_local/translations/ja.json
  85. 5 0
      custom_components/tuya_local/translations/no-NB.json
  86. 5 0
      custom_components/tuya_local/translations/pl.json
  87. 5 0
      custom_components/tuya_local/translations/pt-BR.json
  88. 5 0
      custom_components/tuya_local/translations/ru.json
  89. 5 0
      custom_components/tuya_local/translations/uk.json
  90. 5 0
      custom_components/tuya_local/translations/ur.json
  91. 0 4
      tests/devices/test_anko_fan.py
  92. 0 4
      tests/devices/test_arlec_fan.py
  93. 4 2
      tests/devices/test_avatto_blinds.py
  94. 2 9
      tests/devices/test_betterlife_bl1500_heater.py
  95. 6 2
      tests/devices/test_eanons_humidifier.py
  96. 2 2
      tests/devices/test_essentials_purifier.py
  97. 0 7
      tests/devices/test_eurom_600_heater.py
  98. 0 7
      tests/devices/test_eurom_600v2_heater.py
  99. 0 7
      tests/devices/test_eurom_601_heater.py
  100. 0 7
      tests/devices/test_goldair_geco_heater.py

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

@@ -131,7 +131,7 @@ secondary_entities:
           - dps_val: "24"
             value: "24 hours"
   - entity: sensor
-    name: Remaining Time
+    translation_key: time_remaining
     class: duration
     dps:
       - id: 13

+ 0 - 3
custom_components/tuya_local/devices/anko_fan.yaml

@@ -44,9 +44,6 @@ primary_entity:
           value: true
         - dps_val: "off"
           value: false
-    - id: 6
-      type: integer
-      name: timer
 secondary_entities:
   - entity: number
     translation_key: timer

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

@@ -112,7 +112,7 @@ secondary_entities:
           - dps_val: "24"
             value: "24 hours"
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

+ 0 - 3
custom_components/tuya_local/devices/arlec_fan.yaml

@@ -25,9 +25,6 @@ primary_entity:
           value: sleep
         - dps_val: breeze
           value: nature
-    - id: 103
-      name: timer
-      type: string
 secondary_entities:
   - entity: select
     translation_key: timer

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

@@ -89,7 +89,7 @@ secondary_entities:
           - dps_val: "12h"
             value: "12 hours"
   - entity: sensor
-    name: Timer remain
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -83,7 +83,7 @@ secondary_entities:
   - entity: sensor
     category: diagnostic
     class: duration
-    name: Remaining time
+    translation_key: time_remaining
     dps:
       - id: 104
         type: integer

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

@@ -70,7 +70,7 @@ secondary_entities:
           - dps_val: "4"
             value: "4 hours"
   - entity: sensor
-    name: Timer
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -80,7 +80,7 @@ secondary_entities:
           - dps_val: "12"
             value: "12 hours"
   - entity: sensor
-    name: Timer countdown
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -88,7 +88,7 @@ secondary_entities:
           - dps_val: "12"
             value: "12 hours"
   - entity: sensor
-    name: Timer remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -64,7 +64,7 @@ secondary_entities:
           - dps_val: "8"
             value: "8 hours"
   - entity: sensor
-    name: Time left
+    translation_key: time_remaining
     category: diagnostic
     class: duration
     dps:

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

@@ -77,7 +77,7 @@ secondary_entities:
           - dps_val: "8h"
             value: "8 hours"
   - entity: sensor
-    name: Timer remaining
+    translation_key: time_remaining
     category: diagnostic
     class: duration
     dps:

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

@@ -79,7 +79,7 @@ secondary_entities:
           - dps_val: "8"
             value: "8 hours"
   - entity: sensor
-    name: Time left
+    translation_key: time_remaining
     category: diagnostic
     class: duration
     dps:

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

@@ -125,7 +125,7 @@ secondary_entities:
           - dps_val: 24h
             value: 24 hours
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -117,7 +117,7 @@ secondary_entities:
           min: 0
           max: 24
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -80,7 +80,7 @@ secondary_entities:
           - dps_val: 12h
             value: 12 hours
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     dps:
       - id: 20

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

@@ -80,7 +80,7 @@ secondary_entities:
           - dps_val: 12h
             value: 12h
   - entity: sensor
-    name: Timer minutes left
+    translation_key: time_remaining
     class: duration
     dps:
       - id: 20

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

@@ -128,7 +128,7 @@ secondary_entities:
           - dps_val: "3"
             value: "6 hours"
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -146,7 +146,7 @@ secondary_entities:
           - dps_val: true
             value: fahrenheit
   - entity: sensor
-    name: Timer
+    translation_key: time_remaining
     class: duration
     category: config
     dps:

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

@@ -131,7 +131,7 @@ secondary_entities:
           - dps_val: "12"
             value: "12 hours"
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -87,7 +87,7 @@ secondary_entities:
           - dps_val: "9"
             value: "9 hours"
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -97,7 +97,7 @@ secondary_entities:
           - dps_val: "12"
             value: "12 hours"
   - entity: sensor
-    name: Timer
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -99,7 +99,7 @@ secondary_entities:
         type: boolean
         name: button
   - entity: sensor
-    name: Time left
+    translation_key: time_remaining
     category: diagnostic
     class: duration
     dps:

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

@@ -125,7 +125,7 @@ secondary_entities:
           - dps_val: "24"
             value: "24 hours"
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -72,7 +72,7 @@ secondary_entities:
           - dps_val: 8h
             value: "8 hours"
   - entity: sensor
-    name: Timer
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -96,7 +96,7 @@ secondary_entities:
           - dps_val: "6"
             value: "6 hours"
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -59,7 +59,7 @@ secondary_entities:
           - dps_val: "4"
             value: "4 hours"
   - entity: sensor
-    name: Timer
+    translation_key: time_remaining
     category: diagnostic
     class: duration
     dps:

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

@@ -32,7 +32,7 @@ secondary_entities:
         unit: C
         class: measurement
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     dps:
       - id: 101

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

@@ -89,7 +89,7 @@ secondary_entities:
           - dps_val: "24"
             value: "24 hours"
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -55,7 +55,7 @@ secondary_entities:
           - dps_val: 8h
             value: "8 hours"
   - entity: sensor
-    name: Timer
+    translation_key: time_remaining
     category: diagnostic
     class: duration
     dps:

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

@@ -77,7 +77,7 @@ secondary_entities:
           - dps_val: "8"
             value: "8 hours"
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -107,7 +107,7 @@ secondary_entities:
           min: 0
           max: 60
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -281,7 +281,7 @@ secondary_entities:
             value: true
           - value: false
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     dps:
       - id: 121

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

@@ -66,7 +66,7 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: sensor
-    name: Remaining Time
+    translation_key: time_remaining
     class: duration
     dps:
       - id: 12

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

@@ -105,7 +105,7 @@ secondary_entities:
           - dps_val: "8"
             value: "8 hours"
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: "duration"
     dps:
       - id: 12

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

@@ -67,7 +67,7 @@ secondary_entities:
           max: 5999
         unit: min
   - entity: sensor
-    name: Remaining time
+    translation_key: time_remaining
     category: diagnostic
     class: duration
     dps:

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

@@ -175,7 +175,7 @@ secondary_entities:
           - dps_val: 9h
             value: 9 hours
   - entity: sensor
-    name: Timer
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -118,7 +118,7 @@ secondary_entities:
           - dps_val: "9"
             value: "9 hours"
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -103,7 +103,7 @@ secondary_entities:
           - dps_val: "24"
             value: "24 hours"
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -84,7 +84,7 @@ secondary_entities:
           - dps_val: "24"
             value: "24 hours"
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -65,7 +65,7 @@ secondary_entities:
           - dps_val: 3
             value: "8 hours"
   - entity: sensor
-    name: Timer remaining
+    translation_key: time_remaining
     class: duration
     dps:
       - id: 20

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

@@ -115,7 +115,7 @@ secondary_entities:
           - dps_val: "8"
             value: "8 hours"
   - entity: sensor
-    name: Time Remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -116,7 +116,7 @@ secondary_entities:
             value: "24 hours"
   - entity: sensor
     class: duration
-    name: Time remaining
+    translation_key: time_remaining
     category: diagnostic
     dps:
       - id: 12

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

@@ -68,7 +68,7 @@ secondary_entities:
           - dps_val: night
             value: Night
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -108,7 +108,7 @@ secondary_entities:
           - dps_val: "8"
             value: "8 hours"
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -126,7 +126,7 @@ secondary_entities:
           - dps_val: "3"
             value: "6 hours"
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -151,7 +151,7 @@ secondary_entities:
           - dps_val: 24h
             value: 24 hours
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -144,7 +144,7 @@ secondary_entities:
         optional: true
         name: week_program_7
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -178,7 +178,7 @@ secondary_entities:
         name: lock
         type: boolean
   - entity: sensor
-    name: Timer Remaining
+    translation_key: time_remaining
     class: duration
     dps:
       - id: 104

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

@@ -122,7 +122,7 @@ secondary_entities:
           - dps_val: 8
             value: "8 hours"
   - entity: sensor
-    name: Timer time left
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -97,7 +97,7 @@ secondary_entities:
             value: "1 hour"
   - entity: sensor
     category: diagnostic
-    name: Timer
+    translation_key: time_remaining
     class: duration
     dps:
       - id: 42

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

@@ -81,7 +81,7 @@ secondary_entities:
           - dps_val: "5h"
             value: "6 hours"
   - entity: sensor
-    name: Remaining time
+    translation_key: time_remaining
     class: duration
     dps:
       - id: 20

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

@@ -24,7 +24,7 @@ primary_entity:
           value: smart
 secondary_entities:
   - entity: sensor
-    name: Timer remaining
+    translation_key: time_remaining
     class: duration
     dps:
       - id: 19

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

@@ -121,9 +121,8 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
-    icon: "mdi:battery-clock"
     dps:
       - id: 102
         type: integer

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

@@ -110,7 +110,7 @@ secondary_entities:
           - dps_val: null
             value: false
   - entity: sensor
-    name: Remaining time
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -76,7 +76,7 @@ secondary_entities:
           - dps_val: "5h"
             value: "5 hours"
   - entity: sensor
-    name: Timer
+    translation_key: time_remaining
     category: diagnostic
     class: duration
     dps:

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

@@ -125,7 +125,7 @@ secondary_entities:
           - dps_val: "24"
             value: "24 hours"
   - entity: sensor
-    name: Remaining time
+    translation_key: time_remaining
     class: duration
     dps:
       - id: 13

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

@@ -116,7 +116,7 @@ secondary_entities:
           - dps_val: "24h"
             value: "24 hours"
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -163,7 +163,7 @@ secondary_entities:
           - dps_val: "3h"
             value: "3 hours"
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -34,7 +34,7 @@ secondary_entities:
         unit: "%"
   - entity: sensor
     category: diagnostic
-    name: Timer
+    translation_key: time_remaining
     class: duration
     dps:
       - id: 104

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

@@ -33,7 +33,7 @@ secondary_entities:
         unit: "%"
   - entity: sensor
     category: diagnostic
-    name: Auto shutoff time remaining
+    translation_key: time_remaining
     class: duration
     dps:
       - id: 101

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

@@ -160,7 +160,7 @@ secondary_entities:
           - dps_val: "24"
             value: "24 hours"
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -34,7 +34,7 @@ secondary_entities:
         type: string
         name: sensor
   - entity: sensor
-    name: Warm time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -70,7 +70,7 @@ secondary_entities:
         mapping:
           - step: 30
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -73,7 +73,7 @@ secondary_entities:
           min: 0
           max: 60
   - entity: sensor
-    name: "Run time remaining"
+    translation_key: time_remaining
     class: duration
     dps:
       - id: 102

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

@@ -91,7 +91,7 @@ secondary_entities:
           - dps_val: "24h"
             value: "24 hours"
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -61,7 +61,7 @@ secondary_entities:
           - dps_val: "8h"
             value: "8 hours"
   - entity: sensor
-    name: Timer remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -120,7 +120,7 @@ secondary_entities:
           - dps_val: 24h
             value: 24 hours
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -102,7 +102,7 @@ secondary_entities:
           - dps_val: "3"
             value: "5 hours"
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -41,7 +41,7 @@ secondary_entities:
           - dps_val: "4h"
             value: "4 hours"
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -60,7 +60,7 @@ secondary_entities:
           - dps_val: "8h"
             value: "8 hours"
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

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

@@ -145,7 +145,7 @@ secondary_entities:
           min: 1
           max: 720
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     dps:
       - id: 10

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

@@ -66,7 +66,7 @@ secondary_entities:
           - dps_val: "6h"
             value: "6h"
   - entity: sensor
-    name: Time remaining
+    translation_key: time_remaining
     class: duration
     dps:
       - id: 13

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

@@ -70,7 +70,7 @@ secondary_entities:
           - dps_val: "2h"
             value: "2 hours"
   - entity: sensor
-    name: Timer
+    translation_key: time_remaining
     class: duration
     category: diagnostic
     dps:

+ 1 - 7
custom_components/tuya_local/devices/wetair_wch750_heater.yaml

@@ -50,12 +50,6 @@ primary_entity:
               value: "off"
             - dps_val: true
               value: idle
-    - id: 19
-      type: string
-      name: timer
-    - id: 20
-      type: integer
-      name: countdown
     - id: 21
       type: integer
       name: unknown_21
@@ -137,7 +131,7 @@ secondary_entities:
   - entity: sensor
     category: diagnostic
     class: duration
-    name: Timer
+    translation_key: time_remaining
     dps:
       - id: 20
         type: integer

+ 1 - 1
custom_components/tuya_local/helpers/mixin.py

@@ -55,7 +55,7 @@ class TuyaLocalEntity:
     @property
     def use_device_name(self):
         """Return whether to use the device name for the entity name"""
-        own_name = self._config.name or self._attr_translation_key
+        own_name = self._config.name or self._config.translation_key
         return not own_name
 
     @property

+ 5 - 0
custom_components/tuya_local/translations/bg.json

@@ -243,6 +243,11 @@
                 }
             }
         },
+        "sensor": {
+            "time_remaining": {
+                "name": "Оставащо време"
+            }
+        },
         "switch": {
             "anti_frost": {
                 "name": "Анти-замръзване"

+ 5 - 0
custom_components/tuya_local/translations/cz.json

@@ -243,6 +243,11 @@
                 }
             }
         },
+        "sensor": {
+            "time_remaining": {
+                "name": "Zbývající čas"
+            }
+        },
         "switch": {
             "anti_frost": {
                 "name": "Proti mrazu"

+ 5 - 0
custom_components/tuya_local/translations/en.json

@@ -243,6 +243,11 @@
                 }
             }
         },
+        "sensor": {
+            "time_remaining": {
+                "name": "Time remaining"
+            }
+        },
         "switch": {
             "anti_frost": {
                 "name": "Anti-frost"

+ 5 - 0
custom_components/tuya_local/translations/es.json

@@ -243,6 +243,11 @@
                 }
             }
         },
+        "sensor": {
+            "time_remaining": {
+                "name": "Tiempo restante"
+            }
+        },
         "switch": {
             "anti_frost": {
                 "name": "Antihielo"

+ 5 - 0
custom_components/tuya_local/translations/fr.json

@@ -210,6 +210,11 @@
                 }
             }
         },
+        "sensor": {
+            "time_remaining": {
+                "name": "Temps restant"
+            }
+        },
         "switch": {
             "anti_frost": {
                 "name": "Anti-gel"

+ 5 - 0
custom_components/tuya_local/translations/hu.json

@@ -243,6 +243,11 @@
                 }
             }
         },
+        "sensor": {
+            "time_remaining": {
+                "name": "Hátralevő idő"
+            }
+        },
         "switch": {
             "anti_frost": {
                 "name": "Fagyálló"

+ 5 - 0
custom_components/tuya_local/translations/id.json

@@ -243,6 +243,11 @@
                 }
             }
         },
+        "sensor": {
+            "time_remaining": {
+                "name": "Waktu yang tersisa"
+            }
+        },
         "switch": {
             "anti_frost": {
                 "name": "Anti beku"

+ 5 - 0
custom_components/tuya_local/translations/it.json

@@ -243,6 +243,11 @@
                 }
             }
         },
+        "sensor": {
+            "time_remaining": {
+                "name": "Tempo rimanente"
+            }
+        },
         "switch": {
             "anti_frost": {
                 "name": "Antigelo"

+ 5 - 0
custom_components/tuya_local/translations/ja.json

@@ -243,6 +243,11 @@
                 }
             }
         },
+        "sensor": {
+            "time_remaining": {
+                "name": "残り時間"
+            }
+        },
         "switch": {
             "anti_frost": {
                 "name": "霜防止"

+ 5 - 0
custom_components/tuya_local/translations/no-NB.json

@@ -227,6 +227,11 @@
                 }
             }
         },
+        "sensor": {
+            "time_remaining": {
+                "name": "Gjenstående tid"
+            }
+        },
         "switch": {
             "anti_frost": {
                 "name": "Anti-frost"

+ 5 - 0
custom_components/tuya_local/translations/pl.json

@@ -242,6 +242,11 @@
                 }
             }
         },
+        "sensor": {
+            "time_remaining": {
+                "name": "Pozostały czas"
+            }
+        },
         "switch": {
             "anti_frost": {
                 "name": "Ochrona przed zamarzaniem"

+ 5 - 0
custom_components/tuya_local/translations/pt-BR.json

@@ -243,6 +243,11 @@
                 }
             }
         },
+        "sensor": {
+            "time_remaining": {
+                "name": "Tempo restante"
+            }
+        },
         "switch": {
             "anti_frost": {
                 "name": "Antigelo"

+ 5 - 0
custom_components/tuya_local/translations/ru.json

@@ -243,6 +243,11 @@
                 }
             }
         },
+        "sensor": {
+            "time_remaining": {
+                "name": "Времени осталось"
+            }
+        },
         "switch": {
             "anti_frost": {
                 "name": "Антимороз"

+ 5 - 0
custom_components/tuya_local/translations/uk.json

@@ -243,6 +243,11 @@
                 }
             }
         },
+        "sensor": {
+            "time_remaining": {
+                "name": "Залишився час"
+            }
+        },
         "switch": {
             "anti_frost": {
                 "name": "Протиморозний"

+ 5 - 0
custom_components/tuya_local/translations/ur.json

@@ -243,6 +243,11 @@
                 }
             }
         },
+        "sensor": {
+            "time_remaining": {
+                "name": "بقیہ وقت"
+            }
+        },
         "switch": {
             "anti_frost": {
                 "name": "اینٹی فراسٹ"

+ 0 - 4
tests/devices/test_anko_fan.py

@@ -115,10 +115,6 @@ class TestAnkoFan(SwitchableTests, BasicNumberTests, TuyaDeviceTestCase):
         async with assert_device_properties_set(self.subject._device, {SPEED_DPS: "6"}):
             await self.subject.async_set_percentage(80)
 
-    def test_extra_state_attributes(self):
-        self.dps[TIMER_DPS] = "5"
-        self.assertEqual(self.subject.extra_state_attributes, {"timer": 5})
-
     async def test_turn_on_with_params(self):
         self.dps[SWITCH_DPS] = False
         self.dps[SPEED_DPS] = "1"

+ 0 - 4
tests/devices/test_arlec_fan.py

@@ -118,7 +118,3 @@ class TestArlecFan(SwitchableTests, BasicSelectTests, TuyaDeviceTestCase):
         self.dps[PRESET_DPS] = "normal"
         async with assert_device_properties_set(self.subject._device, {SPEED_DPS: 5}):
             await self.subject.async_set_percentage(80)
-
-    def test_extra_state_attributes(self):
-        self.dps[TIMER_DPS] = "2hour"
-        self.assertEqual(self.subject.extra_state_attributes, {"timer": "2hour"})

+ 4 - 2
tests/devices/test_avatto_blinds.py

@@ -37,7 +37,7 @@ class TestAvattoBlinds(MultiSensorTests, BasicSelectTests, TuyaDeviceTestCase):
                 },
                 {
                     "dps": COUNTDOWN_DP,
-                    "name": "sensor_timer",
+                    "name": "sensor_time_remaining",
                     "device_class": SensorDeviceClass.DURATION,
                     "min": 0,
                     "max": 86400,
@@ -56,7 +56,9 @@ class TestAvattoBlinds(MultiSensorTests, BasicSelectTests, TuyaDeviceTestCase):
                 "4": "4 hours",
             },
         )
-        self.mark_secondary(["sensor_travel_time", "sensor_timer", "select_timer"])
+        self.mark_secondary(
+            ["sensor_travel_time", "sensor_time_remaining", "select_timer"]
+        )
 
     def test_device_class_is_blind(self):
         self.assertEqual(self.subject.device_class, CoverDeviceClass.BLIND)

+ 2 - 9
tests/devices/test_betterlife_bl1500_heater.py

@@ -58,12 +58,12 @@ class TestBetterlifeBL1500Heater(
         )
         self.setUpBasicSensor(
             COUNTDOWN_DPS,
-            self.entities.get("sensor_timer_countdown"),
+            self.entities.get("sensor_time_remaining"),
             unit=UnitOfTime.MINUTES,
             device_class=SensorDeviceClass.DURATION,
         )
         self.mark_secondary(
-            ["lock_child_lock", "select_timer", "sensor_timer_countdown"]
+            ["lock_child_lock", "select_timer", "sensor_time_remaining"]
         )
 
     def test_supported_features(self):
@@ -77,13 +77,6 @@ class TestBetterlifeBL1500Heater(
             ),
         )
 
-    def test_icon(self):
-        self.dps[HVACMODE_DPS] = True
-        self.assertEqual(self.subject.icon, "mdi:radiator")
-
-        self.dps[HVACMODE_DPS] = False
-        self.assertEqual(self.subject.icon, "mdi:radiator-disabled")
-
     def test_temperature_unit_returns_celsius(self):
         self.assertEqual(self.subject.temperature_unit, UnitOfTemperature.CELSIUS)
 

+ 6 - 2
tests/devices/test_eanons_humidifier.py

@@ -59,7 +59,7 @@ class TestEanonsHumidifier(
         )
         self.setUpBasicSensor(
             TIMER_DPS,
-            self.entities.get("sensor_timer"),
+            self.entities.get("sensor_time_remaining"),
             unit="min",
             device_class=SensorDeviceClass.DURATION,
         )
@@ -69,7 +69,11 @@ class TestEanonsHumidifier(
             testdata=(1, 0),
         )
         self.mark_secondary(
-            ["select_timer", "sensor_timer", "binary_sensor_tank_empty"]
+            [
+                "select_timer",
+                "sensor_time_remaining",
+                "binary_sensor_tank_empty",
+            ]
         )
 
     def test_supported_features(self):

+ 2 - 2
tests/devices/test_essentials_purifier.py

@@ -89,7 +89,7 @@ class TestEssentialsPurifier(
                 },
                 {
                     "dps": COUNTDOWN_DP,
-                    "name": "sensor_timer",
+                    "name": "sensor_time_remaining",
                     "unit": UnitOfTime.MINUTES,
                     "device_class": SensorDeviceClass.DURATION,
                 },
@@ -126,6 +126,6 @@ class TestEssentialsPurifier(
                 "select_light",
                 "switch_uv_sterilization",
                 "select_timer",
-                "sensor_timer",
+                "sensor_time_remaining",
             ]
         )

+ 0 - 7
tests/devices/test_eurom_600_heater.py

@@ -44,13 +44,6 @@ class TestEurom600Heater(
             | ClimateEntityFeature.TURN_ON,
         )
 
-    def test_icon(self):
-        self.dps[HVACMODE_DPS] = True
-        self.assertEqual(self.subject.icon, "mdi:radiator")
-
-        self.dps[HVACMODE_DPS] = False
-        self.assertEqual(self.subject.icon, "mdi:radiator-disabled")
-
     def test_temperature_unit_returns_celsius(self):
         self.assertEqual(self.subject.temperature_unit, UnitOfTemperature.CELSIUS)
 

+ 0 - 7
tests/devices/test_eurom_600v2_heater.py

@@ -44,13 +44,6 @@ class TestEurom600v2Heater(
             | ClimateEntityFeature.TURN_ON,
         )
 
-    def test_icon(self):
-        self.dps[HVACMODE_DPS] = True
-        self.assertEqual(self.subject.icon, "mdi:radiator")
-
-        self.dps[HVACMODE_DPS] = False
-        self.assertEqual(self.subject.icon, "mdi:radiator-disabled")
-
     def test_temperature_unit_returns_celsius(self):
         self.assertEqual(self.subject.temperature_unit, UnitOfTemperature.CELSIUS)
 

+ 0 - 7
tests/devices/test_eurom_601_heater.py

@@ -53,13 +53,6 @@ class TestEurom601Heater(
             ),
         )
 
-    def test_icon(self):
-        self.dps[HVACMODE_DPS] = True
-        self.assertEqual(self.subject.icon, "mdi:radiator")
-
-        self.dps[HVACMODE_DPS] = False
-        self.assertEqual(self.subject.icon, "mdi:radiator-disabled")
-
     def test_temperature_unit_returns_celsius(self):
         self.assertEqual(self.subject.temperature_unit, UnitOfTemperature.CELSIUS)
 

+ 0 - 7
tests/devices/test_goldair_geco_heater.py

@@ -65,13 +65,6 @@ class TestGoldairGECOHeater(
             | ClimateEntityFeature.TURN_ON,
         )
 
-    def test_icon(self):
-        self.dps[HVACMODE_DPS] = True
-        self.assertEqual(self.subject.icon, "mdi:radiator")
-
-        self.dps[HVACMODE_DPS] = False
-        self.assertEqual(self.subject.icon, "mdi:radiator-disabled")
-
     def test_temperature_unit_returns_celsius(self):
         self.assertEqual(self.subject.temperature_unit, UnitOfTemperature.CELSIUS)
 

Некоторые файлы не были показаны из-за большого количества измененных файлов