From fc7a20d1805134cbc0646a66ba298a66ef8274c1 Mon Sep 17 00:00:00 2001 From: Quentame Date: Thu, 10 Oct 2019 18:57:00 +0200 Subject: [PATCH] Move imports in yr component (#27382) --- homeassistant/components/yr/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/yr/sensor.py b/homeassistant/components/yr/sensor.py index 3d8c63621be..f562f519ab5 100644 --- a/homeassistant/components/yr/sensor.py +++ b/homeassistant/components/yr/sensor.py @@ -7,6 +7,7 @@ from xml.parsers.expat import ExpatError import aiohttp import async_timeout +import xmltodict import voluptuous as vol import homeassistant.helpers.config_validation as cv @@ -155,7 +156,6 @@ class YrData: async def fetching_data(self, *_): """Get the latest data from yr.no.""" - import xmltodict def try_again(err: str): """Retry in 15 to 20 minutes."""