diff --git a/esphome/nspanel_esphome_core.yaml b/esphome/nspanel_esphome_core.yaml index 6bf2250..3982c5d 100644 --- a/esphome/nspanel_esphome_core.yaml +++ b/esphome/nspanel_esphome_core.yaml @@ -18,7 +18,7 @@ substitutions: temp_units: "°C" invalid_cooldown: "100ms" ##### DON'T CHANGE THIS ###### - version: "4.3.0" + version: "4.3.1d1" ############################## ##### External components ##### @@ -808,7 +808,7 @@ api: // Iterate over each character in the string for (char const &c: value) { // Check if character is a space or other specified exceptions - if (std::string(" iljtIf'-,;:!.\"|()[]{}").find(c) != std::string::npos) { + if (display_charset->state == 2 or std::string(" iljtIf'-,;:!.\"|()[]{}").find(c) != std::string::npos) { adjusted_length += 0.5; // Count these as half } else { adjusted_length += 1.0; // Count all other characters as 1