Fix reading of max mireds from Matter lights (#132710)

This commit is contained in:
epenet 2024-12-09 15:14:24 +01:00 committed by GitHub
parent bd0da03eb9
commit 72de5d0fa3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 7 additions and 7 deletions

View File

@ -372,7 +372,7 @@ class MatterLight(MatterEntity, LightEntity):
max_mireds = self.get_matter_attribute_value(
clusters.ColorControl.Attributes.ColorTempPhysicalMaxMireds
)
if min_mireds > 0:
if max_mireds > 0:
self._attr_max_mireds = max_mireds
supported_color_modes = filter_supported_color_modes(supported_color_modes)

View File

@ -647,7 +647,7 @@
"1/768/16390": 0,
"1/768/16394": 31,
"1/768/16395": 0,
"1/768/16396": 65279,
"1/768/16396": 0,
"1/768/16397": 0,
"1/768/16400": 0,
"1/768/65532": 31,

View File

@ -460,7 +460,7 @@
"1/768/16390": 0,
"1/768/16394": 31,
"1/768/16395": 0,
"1/768/16396": 65279,
"1/768/16396": 0,
"1/768/16397": 0,
"1/768/16400": 0,
"1/768/65532": 31,

View File

@ -444,7 +444,7 @@
"1/768/16390": 0,
"1/768/16394": 31,
"1/768/16395": 0,
"1/768/16396": 65279,
"1/768/16396": 0,
"1/768/16397": 0,
"1/768/16400": 0,
"1/768/65532": 31,

View File

@ -1620,7 +1620,7 @@
"6/768/16385": 0,
"6/768/16394": 25,
"6/768/16395": 0,
"6/768/16396": 65279,
"6/768/16396": 0,
"6/768/16397": 0,
"6/768/16400": 0,
"6/768/65532": 25,

View File

@ -384,7 +384,7 @@
"1/768/16390": 0,
"1/768/16394": 31,
"1/768/16395": 0,
"1/768/16396": 65279,
"1/768/16396": 0,
"1/768/16397": 0,
"1/768/16400": 0,
"1/768/65532": 31,

View File

@ -384,7 +384,7 @@
"1/768/16390": 0,
"1/768/16394": 31,
"1/768/16395": 0,
"1/768/16396": 65279,
"1/768/16396": 0,
"1/768/16397": 0,
"1/768/16400": 0,
"1/768/65532": 31,