diff --git a/components/custom_monochromatic/monochromatic_light_output.h b/components/custom_monochromatic/monochromatic_light_output.h index 52e6f3d..74f8296 100644 --- a/components/custom_monochromatic/monochromatic_light_output.h +++ b/components/custom_monochromatic/monochromatic_light_output.h @@ -36,7 +36,6 @@ public: this->state_ = s; switch(s){ case(On): - /* this -> write_state(this) */ this -> light_state_->turn_on(); break; case(Off): @@ -46,6 +45,7 @@ public: break; } + this -> write_state(this -> light_state_); } void loop(){