move import to top-level (#27320)

pull/27322/head
Malte Franken 2019-10-09 01:14:50 +11:00 committed by Fabian Affolter
parent 15c56f1f64
commit e176f16141
1 changed files with 1 additions and 2 deletions

View File

@ -6,6 +6,7 @@ from threading import Lock
import pickle
import voluptuous as vol
import feedparser
from homeassistant.const import EVENT_HOMEASSISTANT_START, CONF_SCAN_INTERVAL
from homeassistant.helpers.event import track_time_interval
@ -87,8 +88,6 @@ class FeedManager:
def _update(self):
"""Update the feed and publish new entries to the event bus."""
import feedparser
_LOGGER.info("Fetching new data from feed %s", self._url)
self._feed = feedparser.parse(
self._url,