mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-10-26 22:10:45 +00:00
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:
2 files changed
+2
-1
No files matched your search
@@ -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) {
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user