Add switch platform to Tuya Light (dj) devices (#58196)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
pull/58313/head
fOmey 2021-10-24 07:44:22 +11:00 committed by GitHub
parent 75e561f1fa
commit 8bfd5e4d06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -64,6 +64,17 @@ SWITCHES: dict[str, tuple[SwitchEntityDescription, ...]] = {
entity_category=ENTITY_CATEGORY_CONFIG,
),
),
# Light
# https://developer.tuya.com/en/docs/iot/f?id=K9i5ql3v98hn3
"dj": (
# There are sockets available with an RGB light
# that advertise as `dj`, but provide an additional
# switch to control the plug.
SwitchEntityDescription(
key=DPCode.SWITCH,
name="Plug",
),
),
# Cirquit Breaker
"dlq": (
SwitchEntityDescription(