Skip to content

Commit

Permalink
Merge pull request #125 from andrewjswan/2023.9.1-screen_id_fix
Browse files Browse the repository at this point in the history
2023.9.1: Fix for screen_id when only iconname defined
  • Loading branch information
lubeda authored Nov 1, 2023
2 parents 2eee63c + 4ea6b43 commit 746b9c7
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 746b9c7

Please sign in to comment.