From 98dfb47448a03283070ed7eba1a71205cacbabd8 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Fri, 5 Jul 2024 09:41:41 +0200 Subject: [PATCH] Fix Matter light discovery schema for DimmerSwitch (#121185) --- homeassistant/components/matter/light.py | 2 ++ homeassistant/components/matter/switch.py | 1 + 2 files changed, 3 insertions(+) diff --git a/homeassistant/components/matter/light.py b/homeassistant/components/matter/light.py index 749d82fd661..9ff6f45177e 100644 --- a/homeassistant/components/matter/light.py +++ b/homeassistant/components/matter/light.py @@ -446,6 +446,8 @@ DISCOVERY_SCHEMAS = [ device_types.DimmablePlugInUnit, device_types.ExtendedColorLight, device_types.OnOffLight, + device_types.DimmerSwitch, + device_types.ColorDimmerSwitch, ), ), # Additional schema to match (HS Color) lights with incorrect/missing device type diff --git a/homeassistant/components/matter/switch.py b/homeassistant/components/matter/switch.py index efa78446fc5..2fb325b8808 100644 --- a/homeassistant/components/matter/switch.py +++ b/homeassistant/components/matter/switch.py @@ -114,6 +114,7 @@ DISCOVERY_SCHEMAS = [ device_types.ColorTemperatureLight, device_types.DimmableLight, device_types.ExtendedColorLight, + device_types.DimmerSwitch, device_types.ColorDimmerSwitch, device_types.OnOffLight, device_types.AirPurifier,