We recently merged a pull request to upgrade the astral library version used in Home Assistant Core to version 2.2. This will be released with Home Assistant 2021.5. This is a major version bump of Astral which includes some breaking changes, this caused us to update our built-in helpers and integrations that depend on astral. This has resulted in a couple of breaking changes to our sun helpers.
Custom integration authors that are maintaining integrations that use the sun helpers or the astral library directly, should review the breaking changes and update their custom integrations if needed.
The sun helper has changed its signature for
get_location_astral_event_next to include an
elevation parameter. Also the return value of
get_astral_location has changed to a tuple including elevation.
Please see the changelog of
astral for further details.