Skip to content

Commit

Permalink
Fix matter color temperature light (home-assistant#87677)
Browse files Browse the repository at this point in the history
* Adds tests for each matter light type and fixes small issue with color temperature lights not being detected properly

* Removes commented out code

* Changed matter light tests to pytest.mark.parametrize to reduce duplicate code
  • Loading branch information
ArturoGuerra authored Feb 8, 2023
1 parent 1a7c993 commit 1c02f19
Show file tree
Hide file tree
Showing 3 changed files with 2,293 additions and 115 deletions.
1 change: 1 addition & 0 deletions homeassistant/components/matter/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ class MatterLightEntityDescription(
subscribe_attributes=(
clusters.OnOff.Attributes.OnOff,
clusters.LevelControl.Attributes.CurrentLevel,
clusters.ColorControl.Attributes.ColorMode,
clusters.ColorControl.Attributes.ColorTemperatureMireds,
),
),
Expand Down
Loading

0 comments on commit 1c02f19

Please sign in to comment.