1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

suggestions

This commit is contained in:
J. Nick Koston
2025-10-18 21:57:19 -10:00
parent acdecafeef
commit 70479dec0d
2 changed files with 3 additions and 8 deletions

View File

@@ -116,8 +116,7 @@ template<typename... Ts> class QueueingScript : public Script<Ts...>, public Com
// max_runs_ is the maximum *total* instances (running + queued)
// So we reject when num_queued_ + 1 >= max_runs_ (queued + running >= max)
if (this->num_queued_ + 1 >= this->max_runs_) {
this->esp_logw_(__LINE__,
ESPHOME_LOG_FORMAT("Script '%s' maximum total instances (running + queued) exceeded!"),
this->esp_logw_(__LINE__, ESPHOME_LOG_FORMAT("Script '%s' max instances (running + queued) reached!"),
LOG_STR_ARG(this->name_));
return;
}