From f864cf218bea6439c7f36f1dec63f8094b162bd3 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Mon, 14 Sep 2026 10:47:36 +0200 Subject: [PATCH] Revert "Add Tuya ksdjml video peephole camera category" (#182163) --- homeassistant/components/tuya/button.py | 3 --- homeassistant/components/tuya/camera.py | 1 - homeassistant/components/tuya/const.py | 5 ----- homeassistant/components/tuya/event.py | 3 --- homeassistant/components/tuya/light.py | 3 --- homeassistant/components/tuya/number.py | 3 --- homeassistant/components/tuya/select.py | 3 --- homeassistant/components/tuya/sensor.py | 3 --- homeassistant/components/tuya/siren.py | 3 --- homeassistant/components/tuya/switch.py | 3 --- 10 files changed, 30 deletions(-) diff --git a/homeassistant/components/tuya/button.py b/homeassistant/components/tuya/button.py index 2e7432b780dc..3d9c5148f20d 100644 --- a/homeassistant/components/tuya/button.py +++ b/homeassistant/components/tuya/button.py @@ -78,9 +78,6 @@ 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, diff --git a/homeassistant/components/tuya/camera.py b/homeassistant/components/tuya/camera.py index 8fb80e0ebce9..277fa2b17cd4 100644 --- a/homeassistant/components/tuya/camera.py +++ b/homeassistant/components/tuya/camera.py @@ -24,7 +24,6 @@ from .entity import TuyaEntity CAMERAS: dict[DeviceCategory, CameraEntityDescription] = { DeviceCategory.DGHSXJ: CameraEntityDescription(key=""), - DeviceCategory.KSDJML: CameraEntityDescription(key=""), DeviceCategory.SP: CameraEntityDescription(key=""), } diff --git a/homeassistant/components/tuya/const.py b/homeassistant/components/tuya/const.py index d1722212ad3d..40cbcf78d237 100644 --- a/homeassistant/components/tuya/const.py +++ b/homeassistant/components/tuya/const.py @@ -509,11 +509,6 @@ 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 diff --git a/homeassistant/components/tuya/event.py b/homeassistant/components/tuya/event.py index e9d83f33ee3a..b863f9db1761 100644 --- a/homeassistant/components/tuya/event.py +++ b/homeassistant/components/tuya/event.py @@ -112,9 +112,6 @@ 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, diff --git a/homeassistant/components/tuya/light.py b/homeassistant/components/tuya/light.py index 59b008ea7a18..49525b980fc2 100644 --- a/homeassistant/components/tuya/light.py +++ b/homeassistant/components/tuya/light.py @@ -374,9 +374,6 @@ 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] diff --git a/homeassistant/components/tuya/number.py b/homeassistant/components/tuya/number.py index b7abc27b4f65..e16e4a622dc8 100644 --- a/homeassistant/components/tuya/number.py +++ b/homeassistant/components/tuya/number.py @@ -516,9 +516,6 @@ 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, diff --git a/homeassistant/components/tuya/select.py b/homeassistant/components/tuya/select.py index f39bf4931938..43cb4a509eeb 100644 --- a/homeassistant/components/tuya/select.py +++ b/homeassistant/components/tuya/select.py @@ -378,9 +378,6 @@ 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] diff --git a/homeassistant/components/tuya/sensor.py b/homeassistant/components/tuya/sensor.py index 088d0d9523b1..665044992913 100644 --- a/homeassistant/components/tuya/sensor.py +++ b/homeassistant/components/tuya/sensor.py @@ -1799,9 +1799,6 @@ 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] diff --git a/homeassistant/components/tuya/siren.py b/homeassistant/components/tuya/siren.py index 368885aaaee3..e43f4d56fa31 100644 --- a/homeassistant/components/tuya/siren.py +++ b/homeassistant/components/tuya/siren.py @@ -53,9 +53,6 @@ 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, diff --git a/homeassistant/components/tuya/switch.py b/homeassistant/components/tuya/switch.py index fd43ce1e3293..5d1215f68f55 100644 --- a/homeassistant/components/tuya/switch.py +++ b/homeassistant/components/tuya/switch.py @@ -945,9 +945,6 @@ 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,