mirror of
https://github.com/esphome/esphome.git
synced 2025-09-27 15:42:22 +01:00
refactor: update write_state method to call parent write_state_ for improved functionality
This commit is contained in:
@@ -4,7 +4,7 @@ namespace esphome {
|
||||
namespace dynamic_lamp {
|
||||
|
||||
void DynamicLamp::write_state(float state) {
|
||||
if (this->parent_->active_lamps_[this->lamp_].set_level(state))
|
||||
if (this->parent_->write_state_(this->lamp_, state))
|
||||
{
|
||||
this->state_ = state;
|
||||
}
|
||||
|
Reference in New Issue
Block a user