Skip to content

deprecated function get_astral_location #860

Closed

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.

Activity

  1. craigbarratt commented on Jul 16, 2026

    @craigbarratt
    Member

    This is already fixed in #859, which is merged but not yet released.

  2. DataGhost commented on Aug 10, 2026

    @DataGhost

    Okay, but is a release scheduled @craigbarratt ? This has been in main HA for two major releases now. Looking at 2.0.1 compared to 2.0.0, the bar for generating a release is rather low, both time-wise (days) and code-wise (a single PR). So I'm a bit confused why this hasn't triggered a 2.0.2 release yet. Is anything blocking that?

  3. craigbarratt commented on Aug 15, 2026

    @craigbarratt
    Member

    Release 2.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions