mirror of
https://github.com/home-assistant/core.git
synced 2026-09-26 17:31:15 -04:00
Add Tuya ksdjml video peephole camera category (#182145)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -78,6 +78,9 @@ BUTTONS: dict[DeviceCategory, tuple[ButtonEntityDescription, ...]] = {
|
||||
),
|
||||
}
|
||||
|
||||
# Video peephole camera / video intercom doorbell (duplicate of `sp`)
|
||||
BUTTONS[DeviceCategory.KSDJML] = BUTTONS[DeviceCategory.SP]
|
||||
|
||||
|
||||
async def async_setup_entry(
|
||||
hass: HomeAssistant,
|
||||
|
||||
@@ -24,6 +24,7 @@ from .entity import TuyaEntity
|
||||
|
||||
CAMERAS: dict[DeviceCategory, CameraEntityDescription] = {
|
||||
DeviceCategory.DGHSXJ: CameraEntityDescription(key=""),
|
||||
DeviceCategory.KSDJML: CameraEntityDescription(key=""),
|
||||
DeviceCategory.SP: CameraEntityDescription(key=""),
|
||||
}
|
||||
|
||||
|
||||
@@ -509,6 +509,11 @@ class DeviceCategory(StrEnum):
|
||||
|
||||
See https://github.com/orgs/home-assistant/discussions/329
|
||||
"""
|
||||
KSDJML = "ksdjml"
|
||||
"""Video peephole camera / video intercom doorbell (undocumented)
|
||||
|
||||
see https://github.com/home-assistant/core/issues/182051
|
||||
"""
|
||||
MBD = "mbd"
|
||||
"""Unknown light product
|
||||
|
||||
|
||||
@@ -112,6 +112,9 @@ EVENTS: dict[DeviceCategory, tuple[TuyaEventEntityDescription, ...]] = {
|
||||
),
|
||||
}
|
||||
|
||||
# Video peephole camera / video intercom doorbell (duplicate of `sp`)
|
||||
EVENTS[DeviceCategory.KSDJML] = EVENTS[DeviceCategory.SP]
|
||||
|
||||
|
||||
async def async_setup_entry(
|
||||
hass: HomeAssistant,
|
||||
|
||||
@@ -374,6 +374,9 @@ LIGHTS[DeviceCategory.PC] = LIGHTS[DeviceCategory.KG]
|
||||
# Smart Camera - Low power consumption camera (duplicate of `sp`)
|
||||
LIGHTS[DeviceCategory.DGHSXJ] = LIGHTS[DeviceCategory.SP]
|
||||
|
||||
# Video peephole camera / video intercom doorbell (duplicate of `sp`)
|
||||
LIGHTS[DeviceCategory.KSDJML] = LIGHTS[DeviceCategory.SP]
|
||||
|
||||
# Dimmer (duplicate of `tgq`)
|
||||
LIGHTS[DeviceCategory.TDQ] = LIGHTS[DeviceCategory.TGQ]
|
||||
|
||||
|
||||
@@ -516,6 +516,9 @@ NUMBERS: dict[DeviceCategory, tuple[NumberEntityDescription, ...]] = {
|
||||
# Smart Camera - Low power consumption camera (duplicate of `sp`)
|
||||
NUMBERS[DeviceCategory.DGHSXJ] = NUMBERS[DeviceCategory.SP]
|
||||
|
||||
# Video peephole camera / video intercom doorbell (duplicate of `sp`)
|
||||
NUMBERS[DeviceCategory.KSDJML] = NUMBERS[DeviceCategory.SP]
|
||||
|
||||
|
||||
async def async_setup_entry(
|
||||
hass: HomeAssistant,
|
||||
|
||||
@@ -378,6 +378,9 @@ SELECTS[DeviceCategory.CZ] = SELECTS[DeviceCategory.KG]
|
||||
# Smart Camera - Low power consumption camera (duplicate of `sp`)
|
||||
SELECTS[DeviceCategory.DGHSXJ] = SELECTS[DeviceCategory.SP]
|
||||
|
||||
# Video peephole camera / video intercom doorbell (duplicate of `sp`)
|
||||
SELECTS[DeviceCategory.KSDJML] = SELECTS[DeviceCategory.SP]
|
||||
|
||||
# Power Socket (duplicate of `kg`)
|
||||
SELECTS[DeviceCategory.PC] = SELECTS[DeviceCategory.KG]
|
||||
|
||||
|
||||
@@ -1869,6 +1869,9 @@ SENSORS: dict[DeviceCategory, tuple[TuyaSensorEntityDescription, ...]] = {
|
||||
# Smart Camera - Low power consumption camera (duplicate of `sp`)
|
||||
SENSORS[DeviceCategory.DGHSXJ] = SENSORS[DeviceCategory.SP]
|
||||
|
||||
# Video peephole camera / video intercom doorbell (duplicate of `sp`)
|
||||
SENSORS[DeviceCategory.KSDJML] = SENSORS[DeviceCategory.SP]
|
||||
|
||||
# Power Socket (duplicate of `kg`)
|
||||
SENSORS[DeviceCategory.PC] = SENSORS[DeviceCategory.KG]
|
||||
|
||||
|
||||
@@ -53,6 +53,9 @@ SIRENS: dict[DeviceCategory, tuple[SirenEntityDescription, ...]] = {
|
||||
# Smart Camera - Low power consumption camera (duplicate of `sp`)
|
||||
SIRENS[DeviceCategory.DGHSXJ] = SIRENS[DeviceCategory.SP]
|
||||
|
||||
# Video peephole camera / video intercom doorbell (duplicate of `sp`)
|
||||
SIRENS[DeviceCategory.KSDJML] = SIRENS[DeviceCategory.SP]
|
||||
|
||||
|
||||
async def async_setup_entry(
|
||||
hass: HomeAssistant,
|
||||
|
||||
@@ -933,6 +933,9 @@ SWITCHES[DeviceCategory.CZ] = SWITCHES[DeviceCategory.PC]
|
||||
# Smart Camera - Low power consumption camera (duplicate of `sp`)
|
||||
SWITCHES[DeviceCategory.DGHSXJ] = SWITCHES[DeviceCategory.SP]
|
||||
|
||||
# Video peephole camera / video intercom doorbell (duplicate of `sp`)
|
||||
SWITCHES[DeviceCategory.KSDJML] = SWITCHES[DeviceCategory.SP]
|
||||
|
||||
|
||||
async def async_setup_entry(
|
||||
hass: HomeAssistant,
|
||||
|
||||
Reference in New Issue
Block a user