瀏覽代碼

Simple switch with timer (and v2): don't set device class to outlet

This is a very generic device that can match wall switches as well as
smartplugs and wall outlets.  Leave device class to the user to customise.
Jason Rumney 2 年之前
父節點
當前提交
8b34bd162b

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -328,3 +328,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [Levanterman](https://github.com/Levanterman) for contributing support for LoraTap double curtain switches.
 - [WallyCZ](https://github.com/WallyCZ) for contributing support for Sencor air conditioners.
 - [lageorgem](https://github.com/lageorgem) for contributing support for Loginovo TV sync backlights.
+- [jaymunro](https://github.com/jaymunro) for contributing support for Makegood dual switches.

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

@@ -4,7 +4,6 @@ products:
     name: Teckin SP21
 primary_entity:
   entity: switch
-  class: outlet
   dps:
     - id: 1
       name: switch

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

@@ -6,7 +6,6 @@ products:
     name: Mini smart switch
 primary_entity:
   entity: switch
-  class: outlet
   dps:
     - id: 1
       name: switch