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