Move imports in yr component (#27382)

This commit is contained in:
Quentame authored and Paulus Schoutsen committed 2019-10-10 09:57:00 -07:00
1 parent 6364da1150
commit fc7a20d180
1 file changed
+1 -1
+1 -1
View File
@@ -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."""