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

Quad powerstrip: mark all outlets as outlets

Only outlet 1 was marked (also copied over to quad_power_timer)
Jason Rumney 2 лет назад
Родитель
Сommit
130cb21663

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

@@ -13,18 +13,21 @@ primary_entity:
 secondary_entities:
   - entity: switch
     name: Outlet 2
+    class: outlet
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
     name: Outlet 3
+    class: outlet
     dps:
       - id: 3
         type: boolean
         name: switch
   - entity: switch
     name: Outlet 4
+    class: outlet
     dps:
       - id: 4
         type: boolean

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

@@ -21,18 +21,21 @@ primary_entity:
 secondary_entities:
   - entity: switch
     name: Outlet 2
+    class: outlet
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
     name: Outlet 3
+    class: outlet
     dps:
       - id: 3
         type: boolean
         name: switch
   - entity: switch
     name: Outlet 4
+    class: outlet
     dps:
       - id: 4
         type: boolean