mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 07:08:20 +00:00
fix: restore timers call in DynamicLampComponent::begin for proper functionality
This commit is contained in:
parent
d189b207b1
commit
3b679c4aae
@ -24,7 +24,7 @@ void DynamicLampComponent::setup() {
|
|||||||
|
|
||||||
void DynamicLampComponent::begin() {
|
void DynamicLampComponent::begin() {
|
||||||
this->restore_lamp_settings_();
|
this->restore_lamp_settings_();
|
||||||
//this->restore_timers_();
|
this->restore_timers_();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DynamicLampComponent::loop() {
|
void DynamicLampComponent::loop() {
|
||||||
@ -291,7 +291,7 @@ bool DynamicLampComponent::add_timer(std::string timer_desc, std::string lamp_li
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (save_slot == 64) {
|
if (save_slot == 64) {
|
||||||
ESP_LOGW(TAG, "No more timer slots available, max 256 timers supported!");
|
ESP_LOGW(TAG, "No more timer slots available, max 64 timers supported!");
|
||||||
this->status_set_warning();
|
this->status_set_warning();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user