mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Add brightness state to emulated hue when devices support only color temp and brightness (#31834)
This commit is contained in:
parent
fd5895118e
commit
9db3900cff
@ -677,7 +677,11 @@ def entity_to_json(config, entity):
|
||||
retval["type"] = "Color temperature light"
|
||||
retval["modelid"] = "HASS312"
|
||||
retval["state"].update(
|
||||
{HUE_API_STATE_COLORMODE: "ct", HUE_API_STATE_CT: state[STATE_COLOR_TEMP]}
|
||||
{
|
||||
HUE_API_STATE_COLORMODE: "ct",
|
||||
HUE_API_STATE_CT: state[STATE_COLOR_TEMP],
|
||||
HUE_API_STATE_BRI: state[STATE_BRIGHTNESS],
|
||||
}
|
||||
)
|
||||
elif entity_features & (
|
||||
SUPPORT_BRIGHTNESS
|
||||
|
Loading…
x
Reference in New Issue
Block a user