Add Tuya Fingerbot device support (#59880)

This commit is contained in:
PlusPlus-ua 2021-11-29 17:52:15 +02:00 committed by GitHub
parent 9aa33a3cf8
commit 2be7773f5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 53 additions and 0 deletions

View file

@ -19,6 +19,7 @@ from .const import (
DEVICE_CLASS_TUYA_BASIC_ANTI_FLICKR,
DEVICE_CLASS_TUYA_BASIC_NIGHTVISION,
DEVICE_CLASS_TUYA_DECIBEL_SENSITIVITY,
DEVICE_CLASS_TUYA_FINGERBOT_MODE,
DEVICE_CLASS_TUYA_IPC_WORK_MODE,
DEVICE_CLASS_TUYA_LED_TYPE,
DEVICE_CLASS_TUYA_LIGHT_MODE,
@ -209,6 +210,15 @@ SELECTS: dict[str, tuple[SelectEntityDescription, ...]] = {
entity_category=ENTITY_CATEGORY_CONFIG,
),
),
# Fingerbot
"szjqr": (
SelectEntityDescription(
key=DPCode.MODE,
name="Mode",
device_class=DEVICE_CLASS_TUYA_FINGERBOT_MODE,
entity_category=ENTITY_CATEGORY_CONFIG,
),
),
}