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

cleanup(devices): deprecate duplicate sensors in old configs

These configs are either very old, from before any conventions were
settled on, or have slipped past PR review with duplicate sensors in.

To avoid contributers getting confused over the project conventions,
deprecate the duplicate sensors.

PR #5548
Jason Rumney 15 часов назад
Родитель
Сommit
b0e82efad8

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

@@ -64,6 +64,8 @@ entities:
 
   - entity: sensor
     class: humidity
+    deprecated: humidifier.current_humidity  # 2026-07-12
+    category: diagnostic
     dps:
       - id: 13
         name: sensor

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

@@ -102,6 +102,7 @@ entities:
     name: Inlet temperature
     category: diagnostic
     class: temperature
+    deprecated: climate.current_temperature  # 2026-07-12
     dps:
       - id: 21
         name: sensor

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

@@ -161,6 +161,8 @@ entities:
         name: switch
   - entity: sensor
     class: temperature
+    deprecated: climate_thermostat.current_temperature  # 2026-07-12
+    category: diagnostic
     dps:
       - id: 102
         type: integer

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

@@ -27,9 +27,6 @@ entities:
           max: 80
         mapping:
           - step: 5
-      - id: 103
-        type: integer
-        name: current_temperature
   - entity: light
     translation_key: display
     category: config

+ 1 - 3
custom_components/tuya_local/devices/gotzejensen_kt975k_kettle.yaml

@@ -20,9 +20,6 @@ entities:
       - id: 2
         type: integer
         name: current_temperature
-        range:
-          min: 0
-          max: 100
       - id: 4
         type: integer
         name: temperature
@@ -117,6 +114,7 @@ entities:
         name: setting
   - entity: sensor
     class: temperature
+    deprecated: water_heater_kettle.current_temperature  # 2026-07-12
     category: diagnostic
     dps:
       - id: 2

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

@@ -145,6 +145,7 @@ entities:
     name: Inlet temperature
     class: temperature
     category: diagnostic
+    deprecated: climate.current_temperature  # 2026-07-12
     dps:
       - id: 21
         type: integer

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

@@ -227,6 +227,7 @@ entities:
     name: Inlet temperature
     category: diagnostic
     class: temperature
+    deprecated: climate.current_temperature  # 2026-07-12
     dps:
       - id: 21
         name: sensor