mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Fix hue ct (#33791)
This commit is contained in:
parent
ad619817c6
commit
ba8ae17487
@ -280,7 +280,7 @@ class HueLight(Light):
|
|||||||
@property
|
@property
|
||||||
def min_mireds(self):
|
def min_mireds(self):
|
||||||
"""Return the coldest color_temp that this light supports."""
|
"""Return the coldest color_temp that this light supports."""
|
||||||
if self.is_group:
|
if self.is_group or "ct" not in self.light.controlcapabilities:
|
||||||
return super().min_mireds
|
return super().min_mireds
|
||||||
|
|
||||||
return self.light.controlcapabilities["ct"]["min"]
|
return self.light.controlcapabilities["ct"]["min"]
|
||||||
@ -288,8 +288,8 @@ class HueLight(Light):
|
|||||||
@property
|
@property
|
||||||
def max_mireds(self):
|
def max_mireds(self):
|
||||||
"""Return the warmest color_temp that this light supports."""
|
"""Return the warmest color_temp that this light supports."""
|
||||||
if self.is_group:
|
if self.is_group or "ct" not in self.light.controlcapabilities:
|
||||||
return super().min_mireds
|
return super().max_mireds
|
||||||
|
|
||||||
return self.light.controlcapabilities["ct"]["max"]
|
return self.light.controlcapabilities["ct"]["max"]
|
||||||
|
|
||||||
|
@ -109,7 +109,6 @@ LIGHT_2_CAPABILITIES = {
|
|||||||
"maxlumen": 600,
|
"maxlumen": 600,
|
||||||
"colorgamuttype": "A",
|
"colorgamuttype": "A",
|
||||||
"colorgamut": [[0.704, 0.296], [0.2151, 0.7106], [0.138, 0.08]],
|
"colorgamut": [[0.704, 0.296], [0.2151, 0.7106], [0.138, 0.08]],
|
||||||
"ct": {"min": 153, "max": 500},
|
|
||||||
},
|
},
|
||||||
"streaming": {"renderer": True, "proxy": False},
|
"streaming": {"renderer": True, "proxy": False},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user