Skip to content

Commit

Permalink
Fix Matter light discovery schema for DimmerSwitch (#121185)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Jul 5, 2024
1 parent 1b42b32 commit 98dfb47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions homeassistant/components/matter/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,8 @@ def _check_transition_blocklist(self) -> None:
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
Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/matter/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def _update_from_device(self) -> None:
device_types.ColorTemperatureLight,
device_types.DimmableLight,
device_types.ExtendedColorLight,
device_types.DimmerSwitch,
device_types.ColorDimmerSwitch,
device_types.OnOffLight,
device_types.AirPurifier,
Expand Down

0 comments on commit 98dfb47

Please sign in to comment.