Skip to content

Commit 0a82f58

Browse files
committed
Sort imports
1 parent caa0455 commit 0a82f58

File tree

6 files changed

+28
-32
lines changed

6 files changed

+28
-32
lines changed

custom_components/irm_kmi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# File inspired from https://github.com/ludeeus/integration_blueprint
44

55
from homeassistant.config_entries import ConfigEntry
6-
from homeassistant.core import HomeAssistant
76
from homeassistant.const import CONF_ZONE
7+
from homeassistant.core import HomeAssistant
88

99
from .const import DOMAIN, PLATFORMS
1010
from .coordinator import IrmKmiCoordinator

custom_components/irm_kmi/api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
"""API Client for IRM KMI weather"""
22
from __future__ import annotations
33

4-
import logging
54
import asyncio
5+
import hashlib
6+
import logging
67
import socket
8+
from datetime import datetime
79

810
import aiohttp
911
import async_timeout
10-
import hashlib
11-
from datetime import datetime
1212

1313
_LOGGER = logging.getLogger(__name__)
1414

custom_components/irm_kmi/config_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import logging
2-
import voluptuous as vol
32

3+
import voluptuous as vol
44
from homeassistant.components.zone import DOMAIN as ZONE_DOMAIN
55
from homeassistant.config_entries import ConfigFlow
66
from homeassistant.const import CONF_ZONE

custom_components/irm_kmi/const.py

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
from homeassistant.components.weather import (
2-
ATTR_CONDITION_CLOUDY,
3-
ATTR_CONDITION_FOG,
4-
ATTR_CONDITION_SNOWY_RAINY,
5-
ATTR_CONDITION_LIGHTNING_RAINY,
6-
ATTR_CONDITION_PARTLYCLOUDY,
7-
ATTR_CONDITION_POURING,
8-
ATTR_CONDITION_RAINY,
9-
ATTR_CONDITION_SNOWY,
10-
ATTR_CONDITION_SUNNY,
11-
ATTR_CONDITION_CLEAR_NIGHT,
12-
ATTR_CONDITION_EXCEPTIONAL
13-
)
1+
from homeassistant.components.weather import (ATTR_CONDITION_CLEAR_NIGHT,
2+
ATTR_CONDITION_CLOUDY,
3+
ATTR_CONDITION_EXCEPTIONAL,
4+
ATTR_CONDITION_FOG,
5+
ATTR_CONDITION_LIGHTNING_RAINY,
6+
ATTR_CONDITION_PARTLYCLOUDY,
7+
ATTR_CONDITION_POURING,
8+
ATTR_CONDITION_RAINY,
9+
ATTR_CONDITION_SNOWY,
10+
ATTR_CONDITION_SNOWY_RAINY,
11+
ATTR_CONDITION_SUNNY)
1412
from homeassistant.const import Platform
1513

1614
DOMAIN = 'irm_kmi'

custom_components/irm_kmi/coordinator.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
"""Example integration using DataUpdateCoordinator."""
22

3-
from datetime import timedelta, datetime
43
import logging
4+
from datetime import datetime, timedelta
55
from typing import List
66

77
import async_timeout
8-
98
from homeassistant.components.weather import Forecast
109
from homeassistant.const import ATTR_LATITUDE, ATTR_LONGITUDE
1110
from homeassistant.helpers.aiohttp_client import async_get_clientsession
12-
from homeassistant.helpers.update_coordinator import (
13-
DataUpdateCoordinator,
14-
UpdateFailed,
15-
)
11+
from homeassistant.helpers.update_coordinator import (DataUpdateCoordinator,
12+
UpdateFailed)
1613

17-
from .data import IrmKmiForecast
18-
from .const import OUT_OF_BENELUX, IRM_KMI_TO_HA_CONDITION_MAP as CDT_MAP
1914
from .api import IrmKmiApiClient, IrmKmiApiError
15+
from .const import IRM_KMI_TO_HA_CONDITION_MAP as CDT_MAP
16+
from .const import OUT_OF_BENELUX
17+
from .data import IrmKmiForecast
2018

2119
_LOGGER = logging.getLogger(__name__)
2220

custom_components/irm_kmi/weather.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import logging
22
from typing import List
33

4-
from homeassistant.components.weather import WeatherEntity, WeatherEntityFeature, Forecast
5-
from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo
4+
from homeassistant.components.weather import (Forecast, WeatherEntity,
5+
WeatherEntityFeature)
66
from homeassistant.config_entries import ConfigEntry
7-
from homeassistant.const import UnitOfTemperature, UnitOfSpeed, UnitOfPrecipitationDepth, UnitOfPressure
7+
from homeassistant.const import (UnitOfPrecipitationDepth, UnitOfPressure,
8+
UnitOfSpeed, UnitOfTemperature)
89
from homeassistant.core import HomeAssistant
10+
from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo
911
from homeassistant.helpers.entity_platform import AddEntitiesCallback
10-
from homeassistant.helpers.update_coordinator import (
11-
CoordinatorEntity,
12-
)
12+
from homeassistant.helpers.update_coordinator import CoordinatorEntity
1313

1414
from . import DOMAIN
1515
from .coordinator import IrmKmiCoordinator

0 commit comments

Comments
 (0)