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

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 16 часов назад
Родитель
Сommit
b0e82efad8

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

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

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

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

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

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

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

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

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

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

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

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

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

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