Skip to content

deprecated function get_astral_location #860

Description

@kanwhoa

Hi,

In the log files, I'm getting a warning as follows:

2026-07-16 07:40:00.219 WARNING (MainThread) [homeassistant.helpers.sun] The deprecated function get_astral_location was called from pyscript. It will be removed in HA Core 2027.7. Use homeassistant.helpers.sun.get_astral_observer instead, please create a bug report at https://github.com/custom-components/pyscript/issues

I'm not using this function or the sun helper directly, but I am using the time_trigger with sunrise.

I couldn't see a use for this method in the source code, and no stack information. I might be able to get the stack information with increased logging though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions