New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnicodeEncodeError when message contains degree symbol #11750
Comments
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 👍 |
Hey there. I upgraded to
|
Me too, python -V: Python 3.6.5, hass --version: 0.66.1
|
As a (temporary) workaround, I changed this file: ${HASS_DIR}/lib/python3.6/site-packages/homeassistant/const.py, so that the line: |
Still present hass --version = 0.69.0 |
Solution for me was here: https://askubuntu.com/questions/162391/how-do-i-fix-my-locale-issue |
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 will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍 |
Home Assistant release (
hass --version
):0.61.1
Python release (
python3 --version
):Python 3.5.4
Component/platform: Ecobee and MQTT Sensors
Description of problem:
When receiving data from sensors (some
mqtt
, someecobee
) with aunit_of_measurement
that contains the degree symbol°
, I get aUnicodeEncodeError: 'ascii' codec can't encode character '\xb0' in position 438: ordinal not in range(128)
error.The unit of measurement is accurately shown in the hass web frontend, and is accurately forwarded to InfluxDB
I've set
unit_of_measurement
toF
for mymqtt
sensors as a temporary workaround, but theecobee
sensors by-default produce this error.Expected: If things are actually working - which they appear to be - less noise in the logs. If some functionality is not working because of this, to fix that.
Problem-relevant
configuration.yaml
entries and steps to reproduce:Either of these:
ecobee
componentThe
°
was inserted usingINSERT MODE -> CTRL+K -> SHIFT + G D
.I've tried using vim to save, and iconv to convert, the file to the proper encoding, and neither gets rid of the error.
To reiterate, simply using the
ecobee
produces this error.Additional info: Probably related to #9528
Traceback (if applicable):
The text was updated successfully, but these errors were encountered: