thewatchman icon indicating copy to clipboard operation
thewatchman copied to clipboard

UnicodeDecodeError

Open moridew opened this issue 2 years ago • 0 comments

Hello. Thank you for your kindness.

The following error occurs:

Logger: homeassistant.config_entries Source: custom_components/watchman/utils.py:255 Integration: Watchman (documentation, issues) First occurred: 11:19:42 (1 occurrences) Last logged: 11:19:42

Error setting up entry Watchman for watchman Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 339, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/watchman/init.py", line 137, in async_setup_entry parse_config(hass, reason="changes in watchman configuration") File "/config/custom_components/watchman/init.py", line 345, in parse_config entity_list, service_list, files_parsed, files_ignored = parse( File "/config/custom_components/watchman/utils.py", line 255, in parse for i, line in enumerate(open(yaml_file, encoding="utf-8")): File "/usr/local/lib/python3.9/codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb4 in position 32: invalid start byte

moridew avatar Jul 13 '22 02:07 moridew