mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Move imports in yr component (#27382)
This commit is contained in:
parent
6364da1150
commit
fc7a20d180
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user