Merge pull request #5640 from tonhuisman/bugfix/Rules-taskname-command-prefix-issue

[Tasks] Taskname prefix for commands not always working
This commit is contained in:
TD-er authored and GitHub committed 2026-09-21 22:30:02 +02:00
commit 7f5f5d4f35
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -402,7 +402,7 @@ void removeExtraNewLine(String& line) {
} }
void removeChar(String& line, char character) { void removeChar(String& line, char character) {
line.replace(character, ' '); line.replace(String(character), EMPTY_STRING);
} }
void addNewLine(String& line) { void addNewLine(String& line) {
+1
View File
@@ -933,6 +933,7 @@ void transformValue(
// Return INVALID_TASK_INDEX when not found, else return taskIndex // Return INVALID_TASK_INDEX when not found, else return taskIndex
taskIndex_t findTaskIndexByName(String deviceName, bool allowDisabled) taskIndex_t findTaskIndexByName(String deviceName, bool allowDisabled)
{ {
deviceName.trim();
deviceName.toLowerCase(); deviceName.toLowerCase();
// cache this, since LoadTaskSettings does take some time. // cache this, since LoadTaskSettings does take some time.
auto result = Cache.taskIndexName.find(deviceName); auto result = Cache.taskIndexName.find(deviceName);