10der / homeassistant-custom_components-awtrix

HASS awtrix
MIT License
66 stars 2 forks source link

Latest release (0.3.18) breaks awtrix integration and weather app #8

Open ErikApption opened 3 days ago

ErikApption commented 3 days ago

Upgraded to 2024.10.3 and something seems broken with the most recent HA release

2024-10-23 14:39:59.648 ERROR (MainThread) [homeassistant.components.automation.weather_app_awtrix_erik] While executing automation automation.weather_app_awtrix_erik
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/components/automation/__init__.py", line 742, in async_trigger
    return await self.action_script.async_run(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/script.py", line 1795, in async_run
    return await asyncio.shield(create_eager_task(run.async_run()))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/script.py", line 463, in async_run
    await self._async_step(log_exceptions=False)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/script.py", line 527, in _async_step
    self._handle_exception(
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/script.py", line 557, in _handle_exception
    raise exception
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/script.py", line 525, in _async_step
    await getattr(self, handler)()
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/script.py", line 763, in _async_call_service_step
    response_data = await self._async_run_long_action(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/script.py", line 726, in _async_run_long_action
    return await long_task
           ^^^^^^^^^^^^^^^
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/core.py", line 2761, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/core.py", line 2804, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/homeassistant/config/custom_components/awtrix/__init__.py", line 50, in service_handler
    func = getattr(device, service)
           ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'AwtrixTime' object has no attribute 'weather_app'
odeBuXTeR commented 1 day ago

Same for me, I've upgraded to 2024.10.3 and the weather app stop working with the same error message...

ErikApption commented 1 day ago

looking at the code here, the issue is not HA - it is the update to the awtrix component 3.18 in 3.18 @10der removed (probably by accident maybe some files got forgotten) the weather app functionality

ErikApption commented 1 day ago

I can confirm - rolling back to previous commit resolves the issue