Describe the issue
After installing the add-on in Home Assistant I noticed continuous UnicodeDecodeError messages in the log.
Error log
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 1: invalid continuation byte Traceback (most recent call last): File "/app/hass_victron_mqtt_discovery/discovery.py", line 143, in on_victron_message payload = json.loads(msg.payload) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 341, in loads s = s.decode(detect_encoding(s), 'surrogatepass') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Frequency
This error repeats approximately every second.
Question
Is this expected behavior, or is there something I can configure/change to avoid these decode errors?
Describe the issue
After installing the add-on in Home Assistant I noticed continuous
UnicodeDecodeErrormessages in the log.Error log
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 1: invalid continuation byte Traceback (most recent call last): File "/app/hass_victron_mqtt_discovery/discovery.py", line 143, in on_victron_message payload = json.loads(msg.payload) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 341, in loads s = s.decode(detect_encoding(s), 'surrogatepass') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Frequency
This error repeats approximately every second.
Question
Is this expected behavior, or is there something I can configure/change to avoid these decode errors?