Преглед на файлове

Remove November 2024 deprecations.

- Blitzwolf BSH2, Dynasty BTX, Grakit, Tesla S300:
  - selects for light colors replaced by named color support in lights
- Greenmigo Alpha Q25: status sensor replaced by binary sensors
Jason Rumney преди 8 месеца
родител
ревизия
387e05bbf6

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

@@ -210,6 +210,7 @@ entities:
   - entity: sensor
     name: Inlet temperature
     class: temperature
+    # 2025-05-13
     deprecated: climate current_temperature
     category: diagnostic
     dps:

+ 0 - 29
custom_components/tuya_local/devices/blitzwolf_bwsh2_humidifier.yaml

@@ -64,35 +64,6 @@ entities:
             value: white
           - dps_val: close
             value: black
-  - entity: select
-    name: Light
-    # 2024-11-21
-    deprecated: light
-    icon: "mdi:lightbulb"
-    category: config
-    dps:
-      - id: 6
-        type: string
-        name: option
-        mapping:
-          - dps_val: close
-            value: "Off"
-          - dps_val: purple
-            value: Purple
-          - dps_val: blue
-            value: Blue
-          - dps_val: cyan
-            value: Cyan
-          - dps_val: green
-            value: Green
-          - dps_val: yellow
-            value: Yellow
-          - dps_val: orange
-            value: Orange
-          - dps_val: red
-            value: Red
-          - dps_val: colour
-            value: Colorful
   - entity: select
     translation_key: timer
     category: config

+ 0 - 39
custom_components/tuya_local/devices/dynasty_btx_fireplace.yaml

@@ -198,42 +198,3 @@ entities:
             value: violet
           - dps_val: "13"
             value: white
-  - entity: select
-    # 2024-11-21
-    deprecated: light_embers
-    name: Embers
-    icon: "mdi:campfire"
-    category: config
-    dps:
-      - id: 106
-        type: string
-        name: option
-        mapping:
-          - dps_val: "0"
-            value: "Off"
-          - dps_val: "1"
-            value: Red
-          - dps_val: "2"
-            value: Orange
-          - dps_val: "3"
-            value: Yellow
-          - dps_val: "4"
-            value: Green
-          - dps_val: "5"
-            value: Teal
-          - dps_val: "6"
-            value: Blue
-          - dps_val: "7"
-            value: Light Blue
-          - dps_val: "8"
-            value: Dark Blue
-          - dps_val: "9"
-            value: Snow Blue
-          - dps_val: "10"
-            value: Purple
-          - dps_val: "11"
-            value: Pink
-          - dps_val: "12"
-            value: Violet
-          - dps_val: "13"
-            value: Colourful

+ 0 - 36
custom_components/tuya_local/devices/gratkit_filament_dryer.yaml

@@ -114,42 +114,6 @@ entities:
             value: Rainbow smooth
           - value: "off"
             hidden: true
-  - entity: select
-    name: Light
-    # 2024-11-21
-    deprecated: light
-    icon: "mdi:led-strip-variant"
-    dps:
-      - id: 103
-        type: string
-        name: option
-        mapping:
-          - dps_val: "0"
-            value: "Off"
-          - dps_val: "1"
-            value: Red
-          - dps_val: "2"
-            value: Green
-          - dps_val: "3"
-            value: Blue
-          - dps_val: "4"
-            value: White
-          - dps_val: "5"
-            value: Yellow
-          - dps_val: "6"
-            value: Cyan
-          - dps_val: "7"
-            value: Purple
-          - dps_val: "8"
-            value: Orange
-          - dps_val: "9"
-            value: Pink
-          - dps_val: "10"
-            value: Rainbow fade
-          - dps_val: "11"
-            value: Rainbow blink
-          - dps_val: "12"
-            value: Rainbow smooth
   - entity: sensor
     class: temperature
     name: Heating plate temperature

+ 0 - 31
custom_components/tuya_local/devices/greenmigo_alpha_q25_pro_wifi.yaml

@@ -36,37 +36,6 @@ entities:
       - id: 6
         type: integer
         name: current_humidity
-  - entity: sensor
-    translation_key: status
-    class: enum
-    # 2024-11-02
-    deprecated: binary_sensor problem/defrost/tank_full
-    category: diagnostic
-    dps:
-      - id: 19
-        type: bitfield
-        name: sensor
-        mapping:
-          - dps_val: 0
-            value: Normal
-            icon: "mdi:check-circle-outline"
-            icon_priority: 2
-          - dps_val: 1
-            value: E1
-            icon: "mdi:alert-circle-outline"
-            icon_priority: 2
-          - dps_val: 2
-            value: E2
-            icon: "mdi:alert-circle-outline"
-            icon_priority: 2
-          - dps_val: 4
-            value: Tank full
-            icon: "mdi:cup-water"
-            icon_priority: 2
-          - dps_val: 8
-            value: Defrosting
-            icon: "mdi:snowflake-melt"
-            icon_priority: 2
   - entity: binary_sensor
     class: problem
     category: diagnostic

+ 0 - 20
custom_components/tuya_local/devices/tesla_s300_purifier.yaml

@@ -175,23 +175,3 @@ entities:
             value: blue
           - dps_val: yellow
             value: yellow
-  - entity: select
-    # 2024-11-21
-    name: Light
-    deprecated: light
-    icon: "mdi:lightbulb"
-    dps:
-      - id: 105
-        type: string
-        name: option
-        mapping:
-          - dps_val: "off"
-            value: "Off"
-          - dps_val: orange
-            value: Orange
-          - dps_val: green
-            value: Green
-          - dps_val: blue
-            value: Blue
-          - dps_val: yellow
-            value: Yellow

+ 1 - 16
tests/devices/test_blitzwolf_bsh2_humidifier.py

@@ -23,21 +23,6 @@ class TestBlitzwolfSH2Humidifier(MultiSelectTests, TuyaDeviceTestCase):
         self.light = self.entities.get("light")
         self.setUpMultiSelect(
             [
-                {
-                    "name": "select_light",
-                    "dps": LIGHT_DP,
-                    "options": {
-                        "close": "Off",
-                        "purple": "Purple",
-                        "blue": "Blue",
-                        "cyan": "Cyan",
-                        "green": "Green",
-                        "yellow": "Yellow",
-                        "orange": "Orange",
-                        "red": "Red",
-                        "colour": "Colorful",
-                    },
-                },
                 {
                     "name": "select_timer",
                     "dps": TIMER_DP,
@@ -53,7 +38,7 @@ class TestBlitzwolfSH2Humidifier(MultiSelectTests, TuyaDeviceTestCase):
                 },
             ]
         )
-        self.mark_secondary(["select_light", "select_timer"])
+        self.mark_secondary(["select_timer"])
 
     def test_supported_features(self):
         self.assertEqual(