From 27267050c8e4fcf87b3dc1cc422f2fd4348da2f0 Mon Sep 17 00:00:00 2001 From: Malte Franken Date: Tue, 8 Oct 2019 23:29:03 +1100 Subject: [PATCH] move import to top-level --- homeassistant/components/feedreader/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/components/feedreader/__init__.py b/homeassistant/components/feedreader/__init__.py index 44ec95f8213154..e4ec154620e94a 100644 --- a/homeassistant/components/feedreader/__init__.py +++ b/homeassistant/components/feedreader/__init__.py @@ -6,6 +6,7 @@ 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 @@ def last_update_successful(self): 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,