On 0.3.5.2, trying to draw an icon, like for instance the cowboy hat -code from the docs, in drawcustom results in the following:
2023-11-13 22:20:20.290 ERROR (MainThread) [homeassistant.components.automation.epaper_weatherman] While executing automation automation.epaper_weatherman
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 655, in async_trigger
await self.action_script.async_run(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1578, in async_run
return await asyncio.shield(run.async_run())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 420, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 470, in _async_step
self._handle_exception(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 493, in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 704, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 666, in _async_run_long_action
return long_task.result()
^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2035, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2072, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/open_epaper_link/__init__.py", line 44, in drawcustomservice
imgbuff = await hass.async_add_executor_job(customimage,entity_id, service, hass)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/open_epaper_link/imagegen.py", line 181, in customimage
data = json.load(f)
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/__init__.py", line 293, in load
return loads(fp.read(),
^^^^^^^^^
File "<frozen codecs>", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf0 in position 2286967: invalid continuation byte
Downgrading to 0.3.5 fixes this; same command (like, for instance, the cowboy hat from the docs) works.
Apologies. Just upgraded to the latest release for some more debugging, and all tags synced fine, icons or not. Not sure what happened there before, but it is working now.
On 0.3.5.2, trying to draw an icon, like for instance the cowboy hat -code from the docs, in drawcustom results in the following:
Downgrading to 0.3.5 fixes this; same command (like, for instance, the cowboy hat from the docs) works.