mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 05:24:53 +01:00
Fix color temperature persistence on CWWW lights (#2486)
This commit is contained in:
parent
039fbc677d
commit
85461a752a
1 changed files with 2 additions and 1 deletions
|
@ -532,7 +532,8 @@ LightCall &LightCall::set_white_if_supported(float white) {
|
|||
return *this;
|
||||
}
|
||||
LightCall &LightCall::set_color_temperature_if_supported(float color_temperature) {
|
||||
if (this->get_active_color_mode_() & ColorCapability::COLOR_TEMPERATURE)
|
||||
if (this->get_active_color_mode_() & ColorCapability::COLOR_TEMPERATURE ||
|
||||
this->get_active_color_mode_() & ColorCapability::COLD_WARM_WHITE)
|
||||
this->set_color_temperature(color_temperature);
|
||||
return *this;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue