mirror of
https://github.com/esphome/esphome.git
synced 2025-03-13 22:28:14 +00:00
fix: ensure lamp count is incremented correctly in restore_lamp_settings function of DynamicLampComponent
This commit is contained in:
parent
7a63947ace
commit
857eeb93e8
@ -462,8 +462,8 @@ void DynamicLampComponent::restore_lamp_settings_() {
|
||||
if (output_in_use == true) {
|
||||
this->available_outputs_[j].in_use = true;
|
||||
}
|
||||
this->lamp_count_++;
|
||||
}
|
||||
this->lamp_count_++;
|
||||
} else {
|
||||
lamp = CombinedLamp();
|
||||
this->active_lamps_[i] = lamp;
|
||||
|
Loading…
x
Reference in New Issue
Block a user