mirror of
https://github.com/jdejaegh/irm-kmi-api.git
synced 2025-06-26 20:05:40 +02:00
Sort imports
This commit is contained in:
parent
1e9d6c56e9
commit
61c641ddba
6 changed files with 14 additions and 13 deletions
|
@ -14,10 +14,11 @@ from zoneinfo import ZoneInfo
|
|||
import aiohttp
|
||||
import async_timeout
|
||||
|
||||
from .const import WEEKDAYS, STYLE_TO_PARAM_MAP, OPTION_STYLE_SATELLITE, \
|
||||
MAP_WARNING_ID_TO_SLUG as SLUG_MAP
|
||||
from .data import CurrentWeatherData, IrmKmiForecast, Forecast, \
|
||||
IrmKmiRadarForecast, RadarAnimationData, AnimationFrameData, WarningData
|
||||
from .const import MAP_WARNING_ID_TO_SLUG as SLUG_MAP
|
||||
from .const import OPTION_STYLE_SATELLITE, STYLE_TO_PARAM_MAP, WEEKDAYS
|
||||
from .data import (AnimationFrameData, CurrentWeatherData, Forecast,
|
||||
IrmKmiForecast, IrmKmiRadarForecast, RadarAnimationData,
|
||||
WarningData)
|
||||
from .pollen import PollenParser
|
||||
from .utils import next_weekday
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""Data classes for IRM KMI integration"""
|
||||
from datetime import datetime
|
||||
from typing import TypedDict, Required, List
|
||||
from typing import List, Required, TypedDict
|
||||
|
||||
|
||||
class Forecast(TypedDict, total=False):
|
||||
|
|
|
@ -3,7 +3,7 @@ import logging
|
|||
import xml.etree.ElementTree as ET
|
||||
from typing import List
|
||||
|
||||
from .const import POLLEN_NAMES, POLLEN_LEVEL_TO_COLOR
|
||||
from .const import POLLEN_LEVEL_TO_COLOR, POLLEN_NAMES
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import base64
|
|||
import copy
|
||||
import datetime
|
||||
import logging
|
||||
from typing import List, Self, Any
|
||||
from typing import Any, List, Self
|
||||
|
||||
import async_timeout
|
||||
from svgwrite import Drawing
|
||||
|
|
|
@ -3,12 +3,11 @@ from zoneinfo import ZoneInfo
|
|||
|
||||
from freezegun import freeze_time
|
||||
|
||||
from irm_kmi_api.data import CurrentWeatherData, IrmKmiRadarForecast, Forecast, IrmKmiForecast
|
||||
from irm_kmi_api.data import (CurrentWeatherData, Forecast, IrmKmiForecast,
|
||||
IrmKmiRadarForecast)
|
||||
from tests.conftest import get_api_with_data
|
||||
from tests.const import ATTR_CONDITION_PARTLYCLOUDY, ATTR_CONDITION_CLOUDY, ATTR_CONDITION_RAINY
|
||||
|
||||
pytest_plugins = ('pytest_asyncio',)
|
||||
|
||||
from tests.const import (ATTR_CONDITION_CLOUDY, ATTR_CONDITION_PARTLYCLOUDY,
|
||||
ATTR_CONDITION_RAINY)
|
||||
|
||||
|
||||
@freeze_time(datetime.fromisoformat('2024-01-12T07:10:00+00:00'))
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import base64
|
||||
import datetime
|
||||
from datetime import datetime as dt, timedelta
|
||||
from datetime import datetime as dt
|
||||
from datetime import timedelta
|
||||
|
||||
from irm_kmi_api.data import AnimationFrameData, RadarAnimationData
|
||||
from irm_kmi_api.rain_graph import RainGraph
|
||||
|
|
Loading…
Add table
Reference in a new issue