Răsfoiți Sursa

Number timers: set duration class

- fix lint and pytest issues with previous commits.
Jason Rumney 1 an în urmă
părinte
comite
966eb07edc
100 a modificat fișierele cu 179 adăugiri și 8 ștergeri
  1. 1 1
      custom_components/tuya_local/config_flow.py
  2. 1 0
      custom_components/tuya_local/devices/CT20W_pir_motion_detector.yaml
  3. 2 0
      custom_components/tuya_local/devices/HCT-626_dual_water_timer.yaml
  4. 1 0
      custom_components/tuya_local/devices/afyeev_16a_evcharger.yaml
  5. 1 0
      custom_components/tuya_local/devices/afyeev_evcharger.yaml
  6. 1 0
      custom_components/tuya_local/devices/anko_fan.yaml
  7. 1 0
      custom_components/tuya_local/devices/aquaforte_vsp_poolpump.yaml
  8. 2 4
      custom_components/tuya_local/devices/ard100_valve.yaml
  9. 1 0
      custom_components/tuya_local/devices/arlec_19speed_fan.yaml
  10. 1 0
      custom_components/tuya_local/devices/arlec_pa1123bkha_portable_air_conditioner.yaml
  11. 1 0
      custom_components/tuya_local/devices/arlec_panel_heater.yaml
  12. 4 0
      custom_components/tuya_local/devices/arlec_pb88uha_s2_switch.yaml
  13. 1 0
      custom_components/tuya_local/devices/arlec_rgb_ledstrip.yaml
  14. 2 0
      custom_components/tuya_local/devices/arlec_thermostat_smartplug.yaml
  15. 1 0
      custom_components/tuya_local/devices/asahom_outdoor_rgbcw_lights.yaml
  16. 1 0
      custom_components/tuya_local/devices/asc_wifi_circuit_breaker.yaml
  17. 1 0
      custom_components/tuya_local/devices/atomi_ceiling_fan.yaml
  18. 4 0
      custom_components/tuya_local/devices/atorch_at2pl_breaker.yaml
  19. 2 0
      custom_components/tuya_local/devices/atorch_at4pw_energymeter.yaml
  20. 8 0
      custom_components/tuya_local/devices/atorch_s1wp.yaml
  21. 1 0
      custom_components/tuya_local/devices/aubess_1gang_switch.yaml
  22. 2 0
      custom_components/tuya_local/devices/aubess_2gang_switch.yaml
  23. 1 2
      custom_components/tuya_local/devices/aubess_rainpoint_irrigation_system.yaml
  24. 3 0
      custom_components/tuya_local/devices/avatto_curtain_duallights.yaml
  25. 1 0
      custom_components/tuya_local/devices/avatto_curtain_light.yaml
  26. 17 0
      custom_components/tuya_local/devices/aygrochy_inline_wifi_air_vent.yaml
  27. 1 0
      custom_components/tuya_local/devices/ballu_aura.yaml
  28. 5 0
      custom_components/tuya_local/devices/bauhn_ap5w0624_powerstrip.yaml
  29. 1 0
      custom_components/tuya_local/devices/ble_hct611_watertimer.yaml
  30. 3 0
      custom_components/tuya_local/devices/ble_solar_light.yaml
  31. 1 0
      custom_components/tuya_local/devices/ble_water_valve.yaml
  32. 2 0
      custom_components/tuya_local/devices/blitzwolf_bwis6_alarm.yaml
  33. 1 0
      custom_components/tuya_local/devices/blitzwolf_bwshp6_smartplug.yaml
  34. 1 0
      custom_components/tuya_local/devices/bonaire_heater.yaml
  35. 2 0
      custom_components/tuya_local/devices/brilliant_double_switch.yaml
  36. 4 0
      custom_components/tuya_local/devices/brilliant_quad_switch.yaml
  37. 1 0
      custom_components/tuya_local/devices/brilliant_single_switch.yaml
  38. 3 0
      custom_components/tuya_local/devices/brilliant_triple_switch.yaml
  39. 1 0
      custom_components/tuya_local/devices/cadence_aroma_diffuser.yaml
  40. 1 0
      custom_components/tuya_local/devices/calex_s45cleare27_light.yaml
  41. 1 0
      custom_components/tuya_local/devices/carson_cb.yaml
  42. 2 0
      custom_components/tuya_local/devices/casdon_td_pro_2.yaml
  43. 1 0
      custom_components/tuya_local/devices/cbi_astute_outdoor_smartswitch.yaml
  44. 1 0
      custom_components/tuya_local/devices/cct_lightbulb.yaml
  45. 1 0
      custom_components/tuya_local/devices/cecofry_5500_airfryer.yaml
  46. 1 0
      custom_components/tuya_local/devices/cesmarthome_acwall_outlet.yaml
  47. 1 0
      custom_components/tuya_local/devices/ciarra_cbcs4850_rangehood.yaml
  48. 2 0
      custom_components/tuya_local/devices/cnc_ycb9zf_breaker.yaml
  49. 1 0
      custom_components/tuya_local/devices/comon_lights.yaml
  50. 1 0
      custom_components/tuya_local/devices/create_fan_light.yaml
  51. 1 0
      custom_components/tuya_local/devices/curtain_with_feedback.yaml
  52. 2 0
      custom_components/tuya_local/devices/depuley_smart_ceiling_fan.yaml
  53. 1 0
      custom_components/tuya_local/devices/deta_dimmer_switch.yaml
  54. 1 0
      custom_components/tuya_local/devices/devola_patio_heater.yaml
  55. 2 0
      custom_components/tuya_local/devices/digoo_dgsp202.yaml
  56. 2 0
      custom_components/tuya_local/devices/diivoo_dwv010.yaml
  57. 2 0
      custom_components/tuya_local/devices/diivoo_wt05.yaml
  58. 1 0
      custom_components/tuya_local/devices/dimming_1ch_switch.yaml
  59. 1 0
      custom_components/tuya_local/devices/dimming_lightbulb.yaml
  60. 2 1
      custom_components/tuya_local/devices/doel_tiplus_litterbox.yaml
  61. 2 0
      custom_components/tuya_local/devices/dongguan_garage_door_opener.yaml
  62. 1 0
      custom_components/tuya_local/devices/dream_maker_feel_fan.yaml
  63. 1 0
      custom_components/tuya_local/devices/dreamlight_led_strip.yaml
  64. 1 0
      custom_components/tuya_local/devices/dual_clamp_energymeter.yaml
  65. 2 0
      custom_components/tuya_local/devices/dual_power_monitor_smartplug.yaml
  66. 2 0
      custom_components/tuya_local/devices/dual_power_monitor_smartplugv2.yaml
  67. 1 0
      custom_components/tuya_local/devices/duux_blizzard_portable_aircon.yaml
  68. 1 0
      custom_components/tuya_local/devices/eberg_qubo_q40hd_heatpump.yaml
  69. 1 0
      custom_components/tuya_local/devices/ecopoint_ev_charger.yaml
  70. 1 0
      custom_components/tuya_local/devices/electriq_ecosilent12wap_aircon.yaml
  71. 1 0
      custom_components/tuya_local/devices/electriq_ecosilent14hpw_aircon.yaml
  72. 5 0
      custom_components/tuya_local/devices/elspet_cat_litterbox.yaml
  73. 1 0
      custom_components/tuya_local/devices/enbrighten_cafe_stringlights.yaml
  74. 1 0
      custom_components/tuya_local/devices/enbrighten_curtainlights.yaml
  75. 4 0
      custom_components/tuya_local/devices/es01_powerstrip.yaml
  76. 2 0
      custom_components/tuya_local/devices/espfort_ecspsp_usbsmartplug.yaml
  77. 1 0
      custom_components/tuya_local/devices/etersky_curtain_switch.yaml
  78. 1 0
      custom_components/tuya_local/devices/etop_ch7100_thermostat.yaml
  79. 1 0
      custom_components/tuya_local/devices/evsun_evcharger.yaml
  80. 1 0
      custom_components/tuya_local/devices/fs_03w_curtain.yaml
  81. 1 0
      custom_components/tuya_local/devices/galaxy_projector_light.yaml
  82. 3 0
      custom_components/tuya_local/devices/gaqqee_kws302wf_energymeter.yaml
  83. 1 0
      custom_components/tuya_local/devices/garza_irrigation_system.yaml
  84. 3 0
      custom_components/tuya_local/devices/gautone_pg103_alarm.yaml
  85. 1 0
      custom_components/tuya_local/devices/ge_jasco_ultra_pro_toggle_dimmer_v2.yaml
  86. 1 0
      custom_components/tuya_local/devices/ge_jasco_ultra_pro_toggle_switch.yaml
  87. 2 0
      custom_components/tuya_local/devices/ghome_sw19_fanlight.yaml
  88. 1 0
      custom_components/tuya_local/devices/goldair_101cm_tower_fan.yaml
  89. 1 0
      custom_components/tuya_local/devices/goldair_dehumidifier.yaml
  90. 1 0
      custom_components/tuya_local/devices/goldair_geco_heater.yaml
  91. 1 0
      custom_components/tuya_local/devices/goldair_gpcv_heater.yaml
  92. 1 0
      custom_components/tuya_local/devices/goldair_gpph_heater.yaml
  93. 1 0
      custom_components/tuya_local/devices/goldair_phet07ea_heater.yaml
  94. 1 0
      custom_components/tuya_local/devices/goldair_platinum_tower_fan.yaml
  95. 2 0
      custom_components/tuya_local/devices/goldair_portable_airconditioner.yaml
  96. 1 0
      custom_components/tuya_local/devices/gorilla_fan_v2.yaml
  97. 2 0
      custom_components/tuya_local/devices/gosund_sp112_usbsmartplug.yaml
  98. 4 0
      custom_components/tuya_local/devices/gosund_usb_triple_powerstrip.yaml
  99. 2 0
      custom_components/tuya_local/devices/grid_connect_usb_double_power_point.yaml
  100. 2 0
      custom_components/tuya_local/devices/grid_connect_usb_power_point.yaml

+ 1 - 1
custom_components/tuya_local/config_flow.py

@@ -6,10 +6,10 @@ from typing import Any
 import tinytuya
 import voluptuous as vol
 from homeassistant.config_entries import (
+    CONN_CLASS_LOCAL_PUSH,
     ConfigEntry,
     ConfigFlow,
     OptionsFlow,
-    CONN_CLASS_LOCAL_PUSH,
 )
 from homeassistant.const import CONF_HOST, CONF_NAME
 from homeassistant.core import HomeAssistant, callback

+ 1 - 0
custom_components/tuya_local/devices/CT20W_pir_motion_detector.yaml

@@ -42,6 +42,7 @@ secondary_entities:
         name: sensor
   - entity: number
     name: Alarm duration
+    class: duration
     category: config
     icon: "mdi:timer"
     dps:

+ 2 - 0
custom_components/tuya_local/devices/HCT-626_dual_water_timer.yaml

@@ -22,6 +22,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "1"
+    class: duration
     category: config
     dps:
       - id: 17
@@ -38,6 +39,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "2"
+    class: duration
     category: config
     dps:
       - id: 18

+ 1 - 0
custom_components/tuya_local/devices/afyeev_16a_evcharger.yaml

@@ -173,6 +173,7 @@ secondary_entities:
             value: true
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 28

+ 1 - 0
custom_components/tuya_local/devices/afyeev_evcharger.yaml

@@ -199,6 +199,7 @@ secondary_entities:
             value: true
   - entity: number
     translation_key: timer
+    class: duration
     dps:
       - id: 28
         type: integer

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

@@ -47,6 +47,7 @@ primary_entity:
 secondary_entities:
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 6

+ 1 - 0
custom_components/tuya_local/devices/aquaforte_vsp_poolpump.yaml

@@ -44,6 +44,7 @@ secondary_entities:
   - entity: number
     name: Boost timer
     translation_key: timer
+    class: duration
     category: config
     mode: box
     dps:

+ 2 - 4
custom_components/tuya_local/devices/ard100_valve.yaml

@@ -19,6 +19,7 @@ secondary_entities:
         name: switch
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 7
@@ -27,10 +28,7 @@ secondary_entities:
         range:
           min: 0
           max: 86400
-        unit: sec
-        mapping:
-          - scale: 1
-          - dps_val: null
+        unit: s
   - entity: select
     translation_key: initial_state
     category: config

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

@@ -31,6 +31,7 @@ primary_entity:
 secondary_entities:
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 22

+ 1 - 0
custom_components/tuya_local/devices/arlec_pa1123bkha_portable_air_conditioner.yaml

@@ -111,6 +111,7 @@ secondary_entities:
         name: fault_code
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 105

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

@@ -53,6 +53,7 @@ secondary_entities:
         name: alternate
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 10

+ 4 - 0
custom_components/tuya_local/devices/arlec_pb88uha_s2_switch.yaml

@@ -37,6 +37,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "1"
+    class: duration
     dps:
       - id: 9
         name: value
@@ -53,6 +54,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "2"
+    class: duration
     dps:
       - id: 10
         name: value
@@ -69,6 +71,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "3"
+    class: duration
     dps:
       - id: 11
         name: value
@@ -85,6 +88,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "4"
+    class: duration
     dps:
       - id: 12
         name: value

+ 1 - 0
custom_components/tuya_local/devices/arlec_rgb_ledstrip.yaml

@@ -63,6 +63,7 @@ primary_entity:
 secondary_entities:
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 7

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

@@ -103,6 +103,7 @@ secondary_entities:
         name: switch
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 4
@@ -254,6 +255,7 @@ secondary_entities:
           max: 9
   - entity: number
     name: Cold delay
+    class: duration
     category: config
     icon: "mdi:camera-timer"
     dps:

+ 1 - 0
custom_components/tuya_local/devices/asahom_outdoor_rgbcw_lights.yaml

@@ -105,6 +105,7 @@ primary_entity:
 secondary_entities:
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 26

+ 1 - 0
custom_components/tuya_local/devices/asc_wifi_circuit_breaker.yaml

@@ -10,6 +10,7 @@ primary_entity:
 secondary_entities:
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 7

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

@@ -56,6 +56,7 @@ secondary_entities:
               max: 6500
   - entity: number
     name: Light timer
+    class: duration
     category: config
     translation_key: timer
     dps:

+ 4 - 0
custom_components/tuya_local/devices/atorch_at2pl_breaker.yaml

@@ -17,6 +17,7 @@ primary_entity:
 secondary_entities:
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 9
@@ -159,6 +160,7 @@ secondary_entities:
           max: 9
   - entity: number
     name: Standby delay
+    class: duration
     category: config
     icon: "mdi:timer"
     dps:
@@ -326,6 +328,7 @@ secondary_entities:
   - entity: number
     name: Data refresh interval
     category: config
+    class: duration
     translation_key: timer
     dps:
       - id: 125
@@ -416,6 +419,7 @@ secondary_entities:
   - entity: number
     name: Overvoltage recovery delay
     category: config
+    class: duration
     icon: "mdi:timer"
     dps:
       - id: 137

+ 2 - 0
custom_components/tuya_local/devices/atorch_at4pw_energymeter.yaml

@@ -13,6 +13,7 @@ secondary_entities:
   - entity: number
     category: config
     translation_key: timer
+    class: duration
     dps:
       - id: 9
         type: integer
@@ -305,6 +306,7 @@ secondary_entities:
   - entity: number
     category: config
     name: Overvoltage recovery delay
+    class: duration
     icon: "mdi:timer"
     dps:
       - id: 137

+ 8 - 0
custom_components/tuya_local/devices/atorch_s1wp.yaml

@@ -13,6 +13,7 @@ primary_entity:
 secondary_entities:
   - entity: number
     category: config
+    class: duration
     translation_key: timer
     dps:
       - id: 9
@@ -323,6 +324,7 @@ secondary_entities:
   - entity: number
     category: config
     name: Timing off time
+    class: duration
     translation_key: timer
     mode: slider
     dps:
@@ -338,6 +340,7 @@ secondary_entities:
   - entity: number
     category: config
     name: Timing on time
+    class: duration
     translation_key: timer
     mode: slider
     dps:
@@ -354,6 +357,7 @@ secondary_entities:
     category: config
     name: Timing loop on time
     translation_key: timer
+    class: duration
     mode: slider
     dps:
       - id: 127
@@ -369,6 +373,7 @@ secondary_entities:
     category: config
     name: Timing loop off time
     translation_key: timer
+    class: duration
     mode: slider
     dps:
       - id: 128
@@ -384,6 +389,7 @@ secondary_entities:
     category: config
     name: Timing countdown on time
     translation_key: timer
+    class: duration
     mode: slider
     dps:
       - id: 129
@@ -399,6 +405,7 @@ secondary_entities:
     category: config
     name: Timing countdown off time
     translation_key: timer
+    class: duration
     mode: slider
     dps:
       - id: 130
@@ -501,6 +508,7 @@ secondary_entities:
     category: config
     name: Overvoltage recovery delay
     icon: "mdi:timer"
+    class: duration
     dps:
       - id: 137
         type: integer

+ 1 - 0
custom_components/tuya_local/devices/aubess_1gang_switch.yaml

@@ -25,6 +25,7 @@ primary_entity:
 secondary_entities:
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 9

+ 2 - 0
custom_components/tuya_local/devices/aubess_2gang_switch.yaml

@@ -33,6 +33,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "1"
+    class: duration
     category: config
     dps:
       - id: 9
@@ -49,6 +50,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "2"
+    class: duration
     dps:
       - id: 10
         type: integer

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

@@ -45,8 +45,7 @@ secondary_entities:
         type: boolean
         optional: true
   - entity: number
-    name: Duration
-    icon: "mdi:timer"
+    class: duration
     category: config
     mode: box
     dps:

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

@@ -75,6 +75,7 @@ secondary_entities:
   - entity: number
     name: Travel time
     category: config
+    class: duration
     icon: "mdi:timer"
     dps:
       - id: 10
@@ -101,6 +102,7 @@ secondary_entities:
   - entity: number
     name: Light 1 timer
     category: config
+    class: duration
     translation_key: timer
     dps:
       - id: 103
@@ -117,6 +119,7 @@ secondary_entities:
   - entity: number
     name: Light 2 timer
     category: config
+    class: duration
     translation_key: timer
     dps:
       - id: 104

+ 1 - 0
custom_components/tuya_local/devices/avatto_curtain_light.yaml

@@ -68,6 +68,7 @@ secondary_entities:
   - entity: number
     name: Time control
     category: config
+    class: duration
     icon: "mdi:timer"
     dps:
       - id: 10

+ 17 - 0
custom_components/tuya_local/devices/aygrochy_inline_wifi_air_vent.yaml

@@ -93,6 +93,7 @@ secondary_entities:
           max: 10
   - entity: light
     translation_key: backlight
+    category: config
     dps:
       - id: 101
         name: brightness
@@ -102,6 +103,7 @@ secondary_entities:
           max: 4
   - entity: sensor
     name: Current speed
+    category: diagnostic
     dps:
       - id: 103
         name: sensor
@@ -111,6 +113,8 @@ secondary_entities:
           - scale: 0.1
   - entity: number
     translation_key: timer
+    class: duration
+    category: config
     dps:
       - id: 104
         name: value
@@ -124,6 +128,7 @@ secondary_entities:
             step: 60
   - entity: sensor
     name: Alarm triggered
+    category: diagnostic
     dps:
       - id: 105
         name: sensor
@@ -131,6 +136,7 @@ secondary_entities:
   # id 106 see primairy entity
   - entity: number
     name: Maximum humidity
+    category: config
     class: humidity
     dps:
       - id: 111
@@ -159,6 +165,7 @@ secondary_entities:
   - entity: number
     name: Minimum humidity
     class: humidity
+    category: config
     dps:
       - id: 113
         name: value
@@ -184,12 +191,14 @@ secondary_entities:
           max: 100
   - entity: lock
     translation_key: child_lock
+    category: config
     dps:
       - id: 114
         type: integer
         name: lock
   - entity: switch
     name: Auto - high temperature switch
+    category: config
     dps:
       - id: 116
         type: integer
@@ -201,6 +210,7 @@ secondary_entities:
             value: false
   - entity: switch
     name: Auto - high humidity switch
+    category: config
     dps:
       - id: 117
         type: integer
@@ -212,6 +222,7 @@ secondary_entities:
             value: false
   - entity: switch
     name: Auto - low temperature switch
+    category: config
     dps:
       - id: 118
         type: integer
@@ -223,6 +234,7 @@ secondary_entities:
             value: false
   - entity: switch
     name: Auto - low humidity switch
+    category: config
     dps:
       - id: 119
         type: integer
@@ -234,6 +246,7 @@ secondary_entities:
             value: false
   - entity: switch
     name: Alarm - high temperature switch
+    category: config
     dps:
       - id: 120
         type: integer
@@ -245,6 +258,7 @@ secondary_entities:
             value: false
   - entity: switch
     name: Alarm - high humidity switch
+    category: config
     dps:
       - id: 121
         type: integer
@@ -256,6 +270,7 @@ secondary_entities:
             value: false
   - entity: switch
     name: Alarm - low temperature switch
+    category: config
     dps:
       - id: 122
         type: integer
@@ -267,6 +282,7 @@ secondary_entities:
             value: false
   - entity: switch
     name: Alarm - low humidity switch
+    category: config
     dps:
       - id: 123
         type: integer
@@ -278,6 +294,7 @@ secondary_entities:
             value: false
   - entity: sensor
     name: Auto triggered
+    category: diagnostic
     dps:
       - id: 126
         name: sensor

+ 1 - 0
custom_components/tuya_local/devices/ballu_aura.yaml

@@ -75,6 +75,7 @@ secondary_entities:
         name: sensor
   - entity: number
     category: config
+    class: duration
     translation_key: timer
     dps:
       - id: 105

+ 5 - 0
custom_components/tuya_local/devices/bauhn_ap5w0624_powerstrip.yaml

@@ -49,6 +49,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "1"
+    class: duration
     dps:
       - id: 9
         type: integer
@@ -74,6 +75,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "2"
+    class: duration
     dps:
       - id: 10
         type: integer
@@ -90,6 +92,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "3"
+    class: duration
     dps:
       - id: 11
         type: integer
@@ -106,6 +109,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "4"
+    class: duration
     dps:
       - id: 12
         type: integer
@@ -122,6 +126,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "5"
+    class: duration
     dps:
       - id: 13
         type: integer

+ 1 - 0
custom_components/tuya_local/devices/ble_hct611_watertimer.yaml

@@ -94,6 +94,7 @@ secondary_entities:
             hidden: true
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 11

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

@@ -83,6 +83,7 @@ primary_entity:
 secondary_entities:
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 7
@@ -161,6 +162,7 @@ secondary_entities:
   - entity: number
     name: PIR delay
     icon: "mdi:camera-timer"
+    class: duration
     category: config
     dps:
       - id: 55
@@ -182,6 +184,7 @@ secondary_entities:
   - entity: number
     name: Standby time
     category: config
+    class: duration
     icon: "mdi:camera-timer"
     dps:
       - id: 58

+ 1 - 0
custom_components/tuya_local/devices/ble_water_valve.yaml

@@ -110,6 +110,7 @@ secondary_entities:
   - entity: number
     name: Irrigation time
     category: config
+    class: duration
     translation_key: timer
     dps:
       - id: 11

+ 2 - 0
custom_components/tuya_local/devices/blitzwolf_bwis6_alarm.yaml

@@ -24,6 +24,7 @@ secondary_entities:
   - entity: number
     name: Exit delay
     category: config
+    class: duration
     icon: "mdi:timer-lock"
     dps:
       - id: 2
@@ -148,6 +149,7 @@ secondary_entities:
   - entity: number
     name: Entry delay
     category: config
+    class: duration
     icon: "mdi:timer-lock"
     dps:
       - id: 28

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

@@ -80,6 +80,7 @@ secondary_entities:
         optional: true
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 9

+ 1 - 0
custom_components/tuya_local/devices/bonaire_heater.yaml

@@ -65,6 +65,7 @@ secondary_entities:
         name: switch
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 19

+ 2 - 0
custom_components/tuya_local/devices/brilliant_double_switch.yaml

@@ -23,6 +23,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "1"
+    class: duration
     dps:
       - id: 7
         type: integer
@@ -39,6 +40,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "2"
+    class: duration
     dps:
       - id: 8
         type: integer

+ 4 - 0
custom_components/tuya_local/devices/brilliant_quad_switch.yaml

@@ -37,6 +37,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "1"
+    class: duration
     dps:
       - id: 7
         type: integer
@@ -53,6 +54,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "2"
+    class: duration
     dps:
       - id: 8
         type: integer
@@ -69,6 +71,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "3"
+    class: duration
     dps:
       - id: 9
         type: integer
@@ -85,6 +88,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "4"
+    class: duration
     dps:
       - id: 10
         type: integer

+ 1 - 0
custom_components/tuya_local/devices/brilliant_single_switch.yaml

@@ -12,6 +12,7 @@ primary_entity:
 secondary_entities:
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 7

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

@@ -30,6 +30,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "1"
+    class: duration
     dps:
       - id: 7
         type: integer
@@ -46,6 +47,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "2"
+    class: duration
     dps:
       - id: 8
         type: integer
@@ -62,6 +64,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "3"
+    class: duration
     dps:
       - id: 9
         type: integer

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

@@ -117,6 +117,7 @@ secondary_entities:
         optional: true
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 109

+ 1 - 0
custom_components/tuya_local/devices/calex_s45cleare27_light.yaml

@@ -56,6 +56,7 @@ primary_entity:
 secondary_entities:
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 26

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

@@ -99,6 +99,7 @@ secondary_entities:
         name: sensor
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 103

+ 2 - 0
custom_components/tuya_local/devices/casdon_td_pro_2.yaml

@@ -104,6 +104,7 @@ secondary_entities:
   - entity: number
     name: Start time
     translation_key: timer
+    class: duration
     dps:
       - id: 9
         name: value
@@ -116,6 +117,7 @@ secondary_entities:
         class: measurement
   - entity: number
     icon: "mdi:timer-edit"
+    class: duration
     name: Cooking time
     dps:
       - id: 10

+ 1 - 0
custom_components/tuya_local/devices/cbi_astute_outdoor_smartswitch.yaml

@@ -12,6 +12,7 @@ primary_entity:
 secondary_entities:
   - entity: number
     category: config
+    class: duration
     translation_key: timer
     dps:
       - id: 7

+ 1 - 0
custom_components/tuya_local/devices/cct_lightbulb.yaml

@@ -42,6 +42,7 @@ primary_entity:
 secondary_entities:
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 26

+ 1 - 0
custom_components/tuya_local/devices/cecofry_5500_airfryer.yaml

@@ -118,6 +118,7 @@ secondary_entities:
   - entity: number
     name: Cooking time
     translation_key: timer
+    class: duration
     dps:
       - id: 9
         type: integer

+ 1 - 0
custom_components/tuya_local/devices/cesmarthome_acwall_outlet.yaml

@@ -11,6 +11,7 @@ primary_entity:
 secondary_entities:
   - entity: number
     category: config
+    class: duration
     translation_key: timer
     dps:
       - id: 102

+ 1 - 0
custom_components/tuya_local/devices/ciarra_cbcs4850_rangehood.yaml

@@ -30,6 +30,7 @@ secondary_entities:
         name: button
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 5

+ 2 - 0
custom_components/tuya_local/devices/cnc_ycb9zf_breaker.yaml

@@ -103,6 +103,7 @@ secondary_entities:
             icon: "mdi:electric-switch"
   - entity: number
     name: Overvoltage delay
+    class: duration
     category: config
     icon: "mdi:camera-timer"
     dps:
@@ -119,6 +120,7 @@ secondary_entities:
   - entity: number
     name: Undervoltage delay
     category: config
+    class: duration
     icon: "mdi:camera-timer"
     dps:
       - id: 108

+ 1 - 0
custom_components/tuya_local/devices/comon_lights.yaml

@@ -101,6 +101,7 @@ secondary_entities:
             default: true
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 26

+ 1 - 0
custom_components/tuya_local/devices/create_fan_light.yaml

@@ -47,6 +47,7 @@ secondary_entities:
         optional: true
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 64

+ 1 - 0
custom_components/tuya_local/devices/curtain_with_feedback.yaml

@@ -42,6 +42,7 @@ secondary_entities:
   - entity: number
     name: Travel time
     category: config
+    class: duration
     icon: "mdi:timer"
     dps:
       - id: 10

+ 2 - 0
custom_components/tuya_local/devices/depuley_smart_ceiling_fan.yaml

@@ -174,6 +174,7 @@ secondary_entities:
             value: 0
   - entity: number
     translation_key: timer
+    class: duration
     name: Light timer
     category: config
     dps:
@@ -190,6 +191,7 @@ secondary_entities:
             step: 60
   - entity: number
     translation_key: timer
+    class: duration
     name: Fan Timer
     category: config
     dps:

+ 1 - 0
custom_components/tuya_local/devices/deta_dimmer_switch.yaml

@@ -31,6 +31,7 @@ secondary_entities:
           - scale: 10
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 6

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

@@ -103,6 +103,7 @@ secondary_entities:
         name: sensor
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 12

+ 2 - 0
custom_components/tuya_local/devices/digoo_dgsp202.yaml

@@ -54,6 +54,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "1"
+    class: duration
     dps:
       - id: 9
         name: value
@@ -70,6 +71,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "2"
+    class: duration
     dps:
       - id: 10
         name: value

+ 2 - 0
custom_components/tuya_local/devices/diivoo_dwv010.yaml

@@ -99,6 +99,7 @@ secondary_entities:
   - entity: number
     name: Irrigation time 1
     category: config
+    class: duration
     icon: "mdi:timer"
     dps:
       - id: 15
@@ -112,6 +113,7 @@ secondary_entities:
   - entity: number
     name: Irrigation time 2
     category: config
+    class: duration
     icon: "mdi:timer"
     dps:
       - id: 127

+ 2 - 0
custom_components/tuya_local/devices/diivoo_wt05.yaml

@@ -95,6 +95,7 @@ secondary_entities:
   - entity: number
     name: Irrigation time 1
     category: config
+    class: duration
     icon: "mdi:timer"
     dps:
       - id: 106
@@ -108,6 +109,7 @@ secondary_entities:
   - entity: number
     name: Irrigation time 2
     category: config
+    class: duration
     icon: "mdi:timer"
     dps:
       - id: 103

+ 1 - 0
custom_components/tuya_local/devices/dimming_1ch_switch.yaml

@@ -39,6 +39,7 @@ secondary_entities:
             value: Seesaw sync
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 6

+ 1 - 0
custom_components/tuya_local/devices/dimming_lightbulb.yaml

@@ -21,6 +21,7 @@ primary_entity:
 secondary_entities:
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 26

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

@@ -43,7 +43,7 @@ secondary_entities:
       - id: 8
         type: integer
         name: sensor
-        unit: seconds
+        unit: s
         class: measurement
   - entity: binary_sensor
     class: problem
@@ -113,6 +113,7 @@ secondary_entities:
   - entity: number
     name: Clean wait time
     category: config
+    class: duration
     icon: "mdi:timer"
     dps:
       - id: 117

+ 2 - 0
custom_components/tuya_local/devices/dongguan_garage_door_opener.yaml

@@ -30,6 +30,7 @@ primary_entity:
 secondary_entities:
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 2
@@ -54,6 +55,7 @@ secondary_entities:
   - entity: number
     name: Timeout alarm
     icon: mdi:timer-alert
+    class: duration
     category: config
     dps:
       - id: 5

+ 1 - 0
custom_components/tuya_local/devices/dream_maker_feel_fan.yaml

@@ -98,6 +98,7 @@ secondary_entities:
         optional: true
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 102

+ 1 - 0
custom_components/tuya_local/devices/dreamlight_led_strip.yaml

@@ -86,6 +86,7 @@ primary_entity:
 secondary_entities:
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 26

+ 1 - 0
custom_components/tuya_local/devices/dual_clamp_energymeter.yaml

@@ -210,6 +210,7 @@ secondary_entities:
   - entity: number
     name: Reporting frequency
     category: config
+    class: duration
     icon: "mdi:timer-cog"
     dps:
       - id: 122

+ 2 - 0
custom_components/tuya_local/devices/dual_power_monitor_smartplug.yaml

@@ -60,6 +60,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "1"
+    class: duration
     dps:
       - id: 10
         type: integer
@@ -76,6 +77,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "2"
+    class: duration
     dps:
       - id: 11
         type: integer

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

@@ -41,6 +41,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "1"
+    class: duration
     dps:
       - id: 9
         type: integer
@@ -57,6 +58,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "2"
+    class: duration
     dps:
       - id: 10
         type: integer

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

@@ -92,6 +92,7 @@ secondary_entities:
   - entity: number
     translation_key: timer
     category: config
+    class: duration
     dps:
       - id: 4
         name: value

+ 1 - 0
custom_components/tuya_local/devices/eberg_qubo_q40hd_heatpump.yaml

@@ -108,6 +108,7 @@ primary_entity:
 secondary_entities:
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 22

+ 1 - 0
custom_components/tuya_local/devices/ecopoint_ev_charger.yaml

@@ -274,6 +274,7 @@ secondary_entities:
   - entity: number
     name: Charge time
     category: config
+    class: duration
     icon: "mdi:timer"
     dps:
       - id: 19

+ 1 - 0
custom_components/tuya_local/devices/electriq_ecosilent12wap_aircon.yaml

@@ -144,6 +144,7 @@ secondary_entities:
         name: switch
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 22

+ 1 - 0
custom_components/tuya_local/devices/electriq_ecosilent14hpw_aircon.yaml

@@ -121,6 +121,7 @@ secondary_entities:
         name: switch
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 22

+ 5 - 0
custom_components/tuya_local/devices/elspet_cat_litterbox.yaml

@@ -45,6 +45,7 @@ secondary_entities:
     name: Clean wait time
     category: config
     translation_key: timer
+    class: duration
     dps:
       - id: 103
         type: integer
@@ -63,6 +64,7 @@ secondary_entities:
   - entity: number
     name: UV time
     category: config
+    class: duration
     icon: "mdi:timer"
     dps:
       - id: 105
@@ -83,6 +85,7 @@ secondary_entities:
   - entity: number
     name: Deodorize time
     category: config
+    class: duration
     icon: "mdi:timer"
     dps:
       - id: 107
@@ -107,6 +110,7 @@ secondary_entities:
         name: switch
   - entity: number
     name: Sleep start
+    class: duration
     category: config
     icon: "mdi:timer"
     dps:
@@ -121,6 +125,7 @@ secondary_entities:
           - scale: 60
   - entity: number
     name: Sleep end
+    class: duration
     category: config
     icon: "mdi:timer"
     dps:

+ 1 - 0
custom_components/tuya_local/devices/enbrighten_cafe_stringlights.yaml

@@ -20,6 +20,7 @@ primary_entity:
 secondary_entities:
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 26

+ 1 - 0
custom_components/tuya_local/devices/enbrighten_curtainlights.yaml

@@ -36,6 +36,7 @@ primary_entity:
 secondary_entities:
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 26

+ 4 - 0
custom_components/tuya_local/devices/es01_powerstrip.yaml

@@ -35,6 +35,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "1"
+    class: duration
     dps:
       - id: 5
         name: value
@@ -51,6 +52,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "2"
+    class: duration
     dps:
       - id: 6
         name: value
@@ -67,6 +69,7 @@ secondary_entities:
     translation_key: timer_x
     translation_placeholders:
       x: "3"
+    class: duration
     dps:
       - id: 7
         name: value
@@ -82,6 +85,7 @@ secondary_entities:
     category: config
     name: USB timer
     translation_key: timer
+    class: duration
     dps:
       - id: 8
         name: value

+ 2 - 0
custom_components/tuya_local/devices/espfort_ecspsp_usbsmartplug.yaml

@@ -30,6 +30,7 @@ secondary_entities:
   - entity: number
     category: config
     name: USB timer
+    class: duration
     translation_key: timer
     dps:
       - id: 9
@@ -44,6 +45,7 @@ secondary_entities:
             step: 60
   - entity: number
     category: config
+    class: duration
     translation_key: timer
     dps:
       - id: 10

+ 1 - 0
custom_components/tuya_local/devices/etersky_curtain_switch.yaml

@@ -27,6 +27,7 @@ secondary_entities:
   - entity: number
     name: Time control
     category: config
+    class: duration
     icon: "mdi:timer"
     dps:
       - id: 10

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

@@ -167,6 +167,7 @@ secondary_entities:
   - entity: number
     name: Temporary hold time
     icon: "mdi:timer"
+    class: duration
     category: config
     dps:
       - id: 103

+ 1 - 0
custom_components/tuya_local/devices/evsun_evcharger.yaml

@@ -266,6 +266,7 @@ secondary_entities:
   - entity: number
     name: Delayed charge timer
     category: config
+    class: duration
     translation_key: timer
     dps:
       - id: 28

+ 1 - 0
custom_components/tuya_local/devices/fs_03w_curtain.yaml

@@ -47,6 +47,7 @@ secondary_entities:
             value: Back
   - entity: number
     name: Travel time
+    class: duration
     category: config
     icon: "mdi:timer"
     dps:

+ 1 - 0
custom_components/tuya_local/devices/galaxy_projector_light.yaml

@@ -40,6 +40,7 @@ primary_entity:
 secondary_entities:
   - entity: number
     translation_key: timer
+    class: duration
     dps:
       - id: 26
         type: integer

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

@@ -142,6 +142,7 @@ secondary_entities:
     name: Power off time
     category: config
     translation_key: timer
+    class: duration
     dps:
       - id: 112
         type: integer
@@ -204,6 +205,7 @@ secondary_entities:
   - entity: number
     translation_key: timer
     name: Screen timeout
+    class: duration
     category: config
     icon: "mdi:television-ambient-light"
     dps:
@@ -225,6 +227,7 @@ secondary_entities:
   - entity: number
     translation_key: timer
     category: config
+    class: duration
     dps:
       - id: 121
         type: integer

+ 1 - 0
custom_components/tuya_local/devices/garza_irrigation_system.yaml

@@ -55,6 +55,7 @@ secondary_entities:
         unit: L
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 107

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

@@ -31,6 +31,7 @@ secondary_entities:
     name: Exit delay
     category: config
     icon: "mdi:timer"
+    class: duration
     dps:
       - id: 2
         type: integer
@@ -42,6 +43,7 @@ secondary_entities:
   - entity: number
     name: Entry delay
     category: config
+    class: duration
     icon: "mdi:timer"
     dps:
       - id: 28
@@ -55,6 +57,7 @@ secondary_entities:
     name: Siren duration
     category: config
     icon: "mdi:timer"
+    class: duration
     dps:
       - id: 3
         type: integer

+ 1 - 0
custom_components/tuya_local/devices/ge_jasco_ultra_pro_toggle_dimmer_v2.yaml

@@ -34,6 +34,7 @@ secondary_entities:
             value: LED
   - entity: number
     category: config
+    class: duration
     translation_key: timer
     dps:
       - id: 6

+ 1 - 0
custom_components/tuya_local/devices/ge_jasco_ultra_pro_toggle_switch.yaml

@@ -43,6 +43,7 @@ secondary_entities:
             value: Indicate switch on/off
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 7

+ 2 - 0
custom_components/tuya_local/devices/ghome_sw19_fanlight.yaml

@@ -23,6 +23,7 @@ primary_entity:
 secondary_entities:
   - entity: number
     name: Fan timer
+    class: duration
     category: config
     translation_key: timer
     dps:
@@ -50,6 +51,7 @@ secondary_entities:
   - entity: number
     name: Light timer
     category: config
+    class: duration
     translation_key: timer
     dps:
       - id: 7

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

@@ -39,6 +39,7 @@ secondary_entities:
         unit: C
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 22

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

@@ -129,6 +129,7 @@ secondary_entities:
         name: sensor
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 12

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

@@ -35,6 +35,7 @@ secondary_entities:
         name: lock
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 5

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

@@ -43,6 +43,7 @@ secondary_entities:
         name: lock
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 5

+ 1 - 0
custom_components/tuya_local/devices/goldair_gpph_heater.yaml

@@ -136,6 +136,7 @@ secondary_entities:
         name: lock
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 102

+ 1 - 0
custom_components/tuya_local/devices/goldair_phet07ea_heater.yaml

@@ -38,6 +38,7 @@ secondary_entities:
         name: lock
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 5

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

@@ -41,6 +41,7 @@ primary_entity:
 secondary_entities:
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 6

+ 2 - 0
custom_components/tuya_local/devices/goldair_portable_airconditioner.yaml

@@ -202,6 +202,7 @@ secondary_entities:
   - entity: number
     name: "On timer"
     category: config
+    class: duration
     translation_key: timer
     dps:
       - id: 104
@@ -217,6 +218,7 @@ secondary_entities:
   - entity: number
     name: "Off timer"
     category: config
+    class: duration
     translation_key: timer
     dps:
       - id: 105

+ 1 - 0
custom_components/tuya_local/devices/gorilla_fan_v2.yaml

@@ -37,6 +37,7 @@ secondary_entities:
         name: switch
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 102

+ 2 - 0
custom_components/tuya_local/devices/gosund_sp112_usbsmartplug.yaml

@@ -93,6 +93,7 @@ secondary_entities:
         optional: true
   - entity: number
     translation_key: timer
+    class: duration
     category: config
     dps:
       - id: 9
@@ -108,6 +109,7 @@ secondary_entities:
   - entity: number
     name: USB timer
     category: config
+    class: duration
     translation_key: timer
     dps:
       - id: 15

+ 4 - 0
custom_components/tuya_local/devices/gosund_usb_triple_powerstrip.yaml

@@ -34,6 +34,7 @@ secondary_entities:
         name: switch
   - entity: number
     category: config
+    class: duration
     translation_key: timer_x
     translation_placeholders:
       x: "1"
@@ -50,6 +51,7 @@ secondary_entities:
             step: 60
   - entity: number
     category: config
+    class: duration
     translation_key: timer_x
     translation_placeholders:
       x: "2"
@@ -66,6 +68,7 @@ secondary_entities:
             step: 60
   - entity: number
     category: config
+    class: duration
     translation_key: timer_x
     translation_placeholders:
       x: "3"
@@ -83,6 +86,7 @@ secondary_entities:
   - entity: number
     name: USB Timer
     category: config
+    class: duration
     translation_key: timer
     dps:
       - id: 15

+ 2 - 0
custom_components/tuya_local/devices/grid_connect_usb_double_power_point.yaml

@@ -102,6 +102,7 @@ secondary_entities:
           - dps_val: memory
             value: memory
   - entity: number
+    class: duration
     translation_key: timer_x
     translation_placeholders:
       x: "1"
@@ -115,6 +116,7 @@ secondary_entities:
           min: 0
           max: 86400
   - entity: number
+    class: duration
     translation_key: timer_x
     translation_placeholders:
       x: "2"

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

@@ -15,6 +15,7 @@ secondary_entities:
         name: switch
   - entity: number
     name: Outlet timer
+    class: duration
     translation_key: timer
     category: config
     dps:
@@ -30,6 +31,7 @@ secondary_entities:
         unit: mi
   - entity: number
     name: USB timer
+    class: duration
     translation_key: timer
     category: config
     dps:

Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff