move import to top-level (#27320)
parent
15c56f1f64
commit
e176f16141
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue