Closed t3lmoazevedo closed 3 months ago
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The problem
The template parser doesn't recognize anymore the more-than-one UTF-8 sequences for HTML codes. The core parser logs the following error: UnicodeEncodeError: 'utf-8' codec can't encode characters in position 155-156: surrogates not allowed
Examples: 🔋 using UTF-8: \uD83D\uDD0B 🐌 using UTF-8: \uD83D\uDC0C 🌡️ using UTF-8: \uD83C\uDF21\uFE0F
The error applies for:
What version of Home Assistant Core has the issue?
System Information version | core-2024.1.1 -- | -- installation_type | Home Assistant OS dev | false hassio | true docker | true user | root virtualenv | false python_version | 3.11.6 os_name | Linux os_version | 6.1.70-haos arch | x86_64 timezone | Europe/Lisbon config_dir | /config
Home Assistant Community Store
GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4982 Installed Version | 1.33.0 Stage | running Available Repositories | 1377 Downloaded Repositories | 45Home Assistant Cloud
logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okHome Assistant Supervisor
host_os | Home Assistant OS 11.3 -- | -- update_channel | stable supervisor_version | supervisor-2023.12.0 agent_version | 1.6.0 docker_version | 24.0.7 disk_total | 30.8 GB disk_used | 14.3 GB healthy | true supported | true board | ova supervisor_api | ok version_api | ok installed_addons | Grafana (9.1.1), Let's Encrypt (5.0.9), File editor (5.7.0), Duck DNS (1.15.0), Studio Code Server (5.14.2), Samba share (12.2.0), Home Assistant Google Drive Backup (0.112.1), Check Home Assistant configuration (3.11.0), SQLite Web (4.0.0), InfluxDB (4.8.0), Node-RED (16.0.2), Mosquitto broker (6.4.0)Dashboards
dashboards | 3 -- | -- resources | 29 views | 8 mode | storageRecorder
oldest_recorder_run | January 4, 2024 at 10:34 AM -- | -- current_recorder_run | January 5, 2024 at 10:06 PM estimated_db_size | 571.03 MiB database_engine | sqlite database_version | 3.41.2Sonoff
version | 3.5.4 (a4a8c5f) -- | -- cloud_online | 12 / 13 local_online | 12 / 12What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
No response
Link to integration documentation on our website
No response
Diagnostics information
Before this problem it was possible these template layout examples...
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response