Move imports to top for usgs_earthquakes_feed (#29202)

pull/29208/head
springstan 2019-11-29 01:53:49 +01:00 committed by Martin Hjelmare
parent 8dc366c75b
commit 430061a159
1 changed files with 3 additions and 3 deletions

View File

@ -3,6 +3,9 @@ from datetime import timedelta
import logging
from typing import Optional
from geojson_client.usgs_earthquake_hazards_program_feed import (
UsgsEarthquakeHazardsProgramFeedManager,
)
import voluptuous as vol
from homeassistant.components.geo_location import PLATFORM_SCHEMA, GeolocationEvent
@ -122,9 +125,6 @@ class UsgsEarthquakesFeedEntityManager:
minimum_magnitude,
):
"""Initialize the Feed Entity Manager."""
from geojson_client.usgs_earthquake_hazards_program_feed import (
UsgsEarthquakeHazardsProgramFeedManager,
)
self._hass = hass
self._feed_manager = UsgsEarthquakeHazardsProgramFeedManager(