Skip to content

Commit

Permalink
2023.9.1: Fix for screen_id when only iconname defined and iconname w…
Browse files Browse the repository at this point in the history
…ith _ sign
  • Loading branch information
andrewjswan committed Oct 29, 2023
1 parent 2eee63c commit 4ea6b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/ehmtxv2/EHMTX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ namespace esphome
}
}

return (tokens.size() > 1) ? tokens[1] : (tokens.size() > 0) ? get_icon_name(tokens[0], '_') : "";
return (tokens.size() > 1) ? tokens[1] : (tokens.size() > 0) ? (iconname.find("*") != std::string::npos) ? get_icon_name(tokens[0], '_') : tokens[0] : "";
}

#ifndef USE_ESP8266
Expand Down

0 comments on commit 4ea6b43

Please sign in to comment.