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

Tellur USB power strip: merge into identical Woox R4028 config

Not sure why this did not match in the first place, neither has
any optional dps, and the Woox was available a year before the
Tellur was added.
Jason Rumney 1 год назад
Родитель
Сommit
9db1e7f810

+ 0 - 82
custom_components/tuya_local/devices/tellur_usb_power_strip.yaml

@@ -1,82 +0,0 @@
-name: 3 outlet + USB powerstrip
-primary_entity:
-  entity: switch
-  class: outlet
-  name: Outlet 1
-  dps:
-    - id: 1
-      type: boolean
-      name: switch
-secondary_entities:
-  - entity: switch
-    class: outlet
-    name: Outlet 2
-    dps:
-      - id: 2
-        type: boolean
-        name: switch
-  - entity: switch
-    class: outlet
-    name: Outlet 3
-    dps:
-      - id: 3
-        type: boolean
-        name: switch
-  - entity: switch
-    name: USB
-    icon: "mdi:usb"
-    dps:
-      - id: 7
-        type: boolean
-        name: switch
-  - entity: number
-    category: config
-    translation_key: timer_x
-    translation_placeholders:
-      x: "1"
-    dps:
-      - id: 101
-        type: integer
-        name: value
-        unit: s
-        range:
-          min: 0
-          max: 86400
-  - entity: number
-    category: config
-    translation_key: timer_x
-    translation_placeholders:
-      x: "2"
-    dps:
-      - id: 102
-        type: integer
-        name: value
-        unit: s
-        range:
-          min: 0
-          max: 86400
-  - entity: number
-    category: config
-    translation_key: timer_x
-    translation_placeholders:
-      x: "3"
-    dps:
-      - id: 103
-        type: integer
-        name: value
-        unit: s
-        range:
-          min: 0
-          max: 86400
-  - entity: number
-    name: Timer USB
-    category: config
-    translation_key: timer
-    dps:
-      - id: 105
-        type: integer
-        name: value
-        unit: s
-        range:
-          min: 0
-          max: 86400

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

@@ -1,4 +1,5 @@
 name: 3 outlet + USB powerstrip
+legacy_type: tellur_usb_power_strip
 primary_entity:
   entity: switch
   name: Outlet 1