mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
Move imports to top for usgs_earthquakes_feed (#29202)
This commit is contained in:
parent
8dc366c75b
commit
430061a159
@ -3,6 +3,9 @@ from datetime import timedelta
|
|||||||
import logging
|
import logging
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
|
from geojson_client.usgs_earthquake_hazards_program_feed import (
|
||||||
|
UsgsEarthquakeHazardsProgramFeedManager,
|
||||||
|
)
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.geo_location import PLATFORM_SCHEMA, GeolocationEvent
|
from homeassistant.components.geo_location import PLATFORM_SCHEMA, GeolocationEvent
|
||||||
@ -122,9 +125,6 @@ class UsgsEarthquakesFeedEntityManager:
|
|||||||
minimum_magnitude,
|
minimum_magnitude,
|
||||||
):
|
):
|
||||||
"""Initialize the Feed Entity Manager."""
|
"""Initialize the Feed Entity Manager."""
|
||||||
from geojson_client.usgs_earthquake_hazards_program_feed import (
|
|
||||||
UsgsEarthquakeHazardsProgramFeedManager,
|
|
||||||
)
|
|
||||||
|
|
||||||
self._hass = hass
|
self._hass = hass
|
||||||
self._feed_manager = UsgsEarthquakeHazardsProgramFeedManager(
|
self._feed_manager = UsgsEarthquakeHazardsProgramFeedManager(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user