mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Use core constants for helpers (#46240)
This commit is contained in:
@@ -19,7 +19,6 @@ DATA_LOCATION_CACHE = "astral_location_cache"
|
||||
@bind_hass
|
||||
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
|
||||
|
||||
latitude = hass.config.latitude
|
||||
|
Reference in New Issue
Block a user