Skip to content
This repository was archived by the owner on Feb 2, 2022. It is now read-only.

Home Assistant 2021.5 appears to have broken the periodic update #16

Description

@imellor

In HA 2021.5 the Astral component has been updated to 2.2, this returns more parameters for "get_location_astral_event_next"

This is causing the following error:
2021-05-16 05:08:04 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback async_track_point_in_utc_time.<locals>.run_action(<Job HassJobT...6d1cbf6d30>)>>) at /usr/src/homeassistant/homeassistant/helpers/event.py:1176 Traceback (most recent call last): File "/usr/local/lib/python3.8/asyncio/events.py", line 81, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 1195, in run_action hass.async_run_hass_job(job, utc_point_in_time) File "/usr/src/homeassistant/homeassistant/core.py", line 424, in async_run_hass_job hassjob.target(*args) File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 1317, in _handle_sun_event self.hass.async_run_hass_job(self.job) File "/usr/src/homeassistant/homeassistant/core.py", line 424, in async_run_hass_job hassjob.target(*args) File "/config/custom_components/solcast/__init__.py", line 237, in sunrise_call_action next_setting = get_location_astral_event_next( File "/usr/src/homeassistant/homeassistant/helpers/sun.py", line 84, in get_location_astral_event_next getattr(location, event)( TypeError: getattr(): attribute name must be string

Blog entry for Astral 2.2 documenting change is: (https://developers.home-assistant.io/blog/2021/04/09/astral-2.2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions