mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Postponed evaluation of annotations in core (#46434)
* Postponed evaluation of annotations in core * Remove unneeded future
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
"""Helpers for sun events."""
|
||||
from __future__ import annotations
|
||||
|
||||
import datetime
|
||||
from typing import TYPE_CHECKING, Optional, Union
|
||||
|
||||
@@ -17,7 +19,7 @@ DATA_LOCATION_CACHE = "astral_location_cache"
|
||||
|
||||
@callback
|
||||
@bind_hass
|
||||
def get_astral_location(hass: HomeAssistantType) -> "astral.Location":
|
||||
def get_astral_location(hass: HomeAssistantType) -> astral.Location:
|
||||
"""Get an astral location for the current Home Assistant configuration."""
|
||||
from astral import Location # pylint: disable=import-outside-toplevel
|
||||
|
||||
|
Reference in New Issue
Block a user