mirror of
https://github.com/esphome/esphome.git
synced 2024-12-27 07:51:43 +01:00
rollback
This commit is contained in:
parent
d040f8ad02
commit
c197545b80
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ class LVLight : public light::LightOutput {
|
|||
float red, green, blue;
|
||||
state->current_values_as_rgb(&red, &green, &blue, false);
|
||||
auto color = lv_color_make(red * 255, green * 255, blue * 255);
|
||||
if (this->obj_ != nullptr) { // NOLINT(bugprone-branch-clone)
|
||||
if (this->obj_ != nullptr) {
|
||||
this->set_value_(color);
|
||||
} else {
|
||||
this->initial_value_ = color;
|
||||
|
|
Loading…
Reference in a new issue