mirror of
https://github.com/home-assistant/core.git
synced 2025-04-29 03:37:51 +00:00
Add support for 8-gang switches to Tuya (#67218)
This commit is contained in:
parent
5edb4cbdc6
commit
c62a3c4f0d
@ -329,6 +329,8 @@ class DPCode(StrEnum):
|
|||||||
SWITCH_4 = "switch_4" # Switch 4
|
SWITCH_4 = "switch_4" # Switch 4
|
||||||
SWITCH_5 = "switch_5" # Switch 5
|
SWITCH_5 = "switch_5" # Switch 5
|
||||||
SWITCH_6 = "switch_6" # Switch 6
|
SWITCH_6 = "switch_6" # Switch 6
|
||||||
|
SWITCH_7 = "switch_7" # Switch 7
|
||||||
|
SWITCH_8 = "switch_8" # Switch 8
|
||||||
SWITCH_BACKLIGHT = "switch_backlight" # Backlight switch
|
SWITCH_BACKLIGHT = "switch_backlight" # Backlight switch
|
||||||
SWITCH_CHARGE = "switch_charge"
|
SWITCH_CHARGE = "switch_charge"
|
||||||
SWITCH_CONTROLLER = "switch_controller"
|
SWITCH_CONTROLLER = "switch_controller"
|
||||||
|
@ -137,6 +137,16 @@ SWITCHES: dict[str, tuple[SwitchEntityDescription, ...]] = {
|
|||||||
name="Switch 6",
|
name="Switch 6",
|
||||||
device_class=SwitchDeviceClass.OUTLET,
|
device_class=SwitchDeviceClass.OUTLET,
|
||||||
),
|
),
|
||||||
|
SwitchEntityDescription(
|
||||||
|
key=DPCode.SWITCH_7,
|
||||||
|
name="Switch 7",
|
||||||
|
device_class=SwitchDeviceClass.OUTLET,
|
||||||
|
),
|
||||||
|
SwitchEntityDescription(
|
||||||
|
key=DPCode.SWITCH_8,
|
||||||
|
name="Switch 8",
|
||||||
|
device_class=SwitchDeviceClass.OUTLET,
|
||||||
|
),
|
||||||
SwitchEntityDescription(
|
SwitchEntityDescription(
|
||||||
key=DPCode.SWITCH_USB1,
|
key=DPCode.SWITCH_USB1,
|
||||||
name="USB 1",
|
name="USB 1",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user