............................
This commit is contained in:
@@ -27,9 +27,9 @@ public:
|
||||
return traits;
|
||||
}
|
||||
void write_state(light::LightState *state) override {
|
||||
this->light_state_ = state;
|
||||
state->current_values_as_brightness(&(this->bright_));
|
||||
if (this->state_ == On) {
|
||||
this->light_state_ = state;
|
||||
state->current_values_as_brightness(&(this->bright_));
|
||||
this->upper_->set_level(this->bright_);
|
||||
this->lower_->set_level(this->bright_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user