Use core constants for helpers (#46240)

This commit is contained in:
tkdrob
2021-02-08 16:53:17 -05:00
committed by GitHub
parent 00bbf8c3a2
commit c2302784c2
12 changed files with 1 additions and 18 deletions

View File

@@ -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