Move imports in yr component (#27382)
This commit is contained in:
parent
6364da1150
commit
fc7a20d180
1 changed files with 1 additions and 1 deletions
|
@ -7,6 +7,7 @@ from xml.parsers.expat import ExpatError
|
||||||
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import async_timeout
|
import async_timeout
|
||||||
|
import xmltodict
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
@ -155,7 +156,6 @@ class YrData:
|
||||||
|
|
||||||
async def fetching_data(self, *_):
|
async def fetching_data(self, *_):
|
||||||
"""Get the latest data from yr.no."""
|
"""Get the latest data from yr.no."""
|
||||||
import xmltodict
|
|
||||||
|
|
||||||
def try_again(err: str):
|
def try_again(err: str):
|
||||||
"""Retry in 15 to 20 minutes."""
|
"""Retry in 15 to 20 minutes."""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue