mirror of
https://github.com/esphome/esphome.git
synced 2025-03-14 06:38:17 +00:00
fix: update condition in add_timer function for clarity in lamp list checks
This commit is contained in:
parent
aa666b4379
commit
43e306998b
@ -243,7 +243,7 @@ bool DynamicLampComponent::add_timer(std::string lamp_list_str, bool timer_activ
|
||||
DynamicLampTimer new_timer;
|
||||
unsigned char lamp_list_bytes[2] = {0, 0};
|
||||
for (uint8_t i = 0; i < lamp_list.size(); i++) {
|
||||
if (lamp_list[i] && !this->active_lamps_[i].active) {
|
||||
if (lamp_list[i] == true && !this->active_lamps_[i].active) {
|
||||
ESP_LOGW(TAG, "Ignoring lamp number %" PRIu8 " as there is no active lamp with that index!", i);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user