sort imports according to PEP8 for buienradar (#29623)
parent
ba34922b03
commit
663e2eaaff
|
@ -1,7 +1,7 @@
|
||||||
"""Provide animated GIF loops of Buienradar imagery."""
|
"""Provide animated GIF loops of Buienradar imagery."""
|
||||||
import asyncio
|
import asyncio
|
||||||
import logging
|
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
import logging
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
|
@ -9,13 +9,10 @@ import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.camera import PLATFORM_SCHEMA, Camera
|
from homeassistant.components.camera import PLATFORM_SCHEMA, Camera
|
||||||
from homeassistant.const import CONF_NAME
|
from homeassistant.const import CONF_NAME
|
||||||
|
|
||||||
from homeassistant.helpers import config_validation as cv
|
from homeassistant.helpers import config_validation as cv
|
||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
|
|
||||||
from homeassistant.util import dt as dt_util
|
from homeassistant.util import dt as dt_util
|
||||||
|
|
||||||
|
|
||||||
CONF_DIMENSION = "dimension"
|
CONF_DIMENSION = "dimension"
|
||||||
CONF_DELTA = "delta"
|
CONF_DELTA = "delta"
|
||||||
|
|
||||||
|
|
|
@ -33,11 +33,9 @@ import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
from homeassistant.util import dt as dt_util
|
from homeassistant.util import dt as dt_util
|
||||||
|
|
||||||
|
|
||||||
from .const import DEFAULT_TIMEFRAME
|
from .const import DEFAULT_TIMEFRAME
|
||||||
from .util import BrData
|
from .util import BrData
|
||||||
|
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
MEASURED_LABEL = "Measured"
|
MEASURED_LABEL = "Measured"
|
||||||
|
|
|
@ -5,7 +5,6 @@ import logging
|
||||||
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import async_timeout
|
import async_timeout
|
||||||
|
|
||||||
from buienradar.buienradar import parse_data
|
from buienradar.buienradar import parse_data
|
||||||
from buienradar.constants import (
|
from buienradar.constants import (
|
||||||
ATTRIBUTION,
|
ATTRIBUTION,
|
||||||
|
@ -31,9 +30,7 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
from homeassistant.helpers.event import async_track_point_in_utc_time
|
from homeassistant.helpers.event import async_track_point_in_utc_time
|
||||||
from homeassistant.util import dt as dt_util
|
from homeassistant.util import dt as dt_util
|
||||||
|
|
||||||
|
from .const import SCHEDULE_NOK, SCHEDULE_OK
|
||||||
from .const import SCHEDULE_OK, SCHEDULE_NOK
|
|
||||||
|
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
@ -28,8 +28,8 @@ from homeassistant.const import CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME, TEMP_C
|
||||||
from homeassistant.helpers import config_validation as cv
|
from homeassistant.helpers import config_validation as cv
|
||||||
|
|
||||||
# Reuse data and API logic from the sensor implementation
|
# Reuse data and API logic from the sensor implementation
|
||||||
from .util import BrData
|
|
||||||
from .const import DEFAULT_TIMEFRAME
|
from .const import DEFAULT_TIMEFRAME
|
||||||
|
from .util import BrData
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
"""The tests for generic camera component."""
|
"""The tests for generic camera component."""
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
from aiohttp.client_exceptions import ClientResponseError
|
from aiohttp.client_exceptions import ClientResponseError
|
||||||
|
|
||||||
from homeassistant.util import dt as dt_util
|
|
||||||
|
|
||||||
from homeassistant.setup import async_setup_component
|
from homeassistant.setup import async_setup_component
|
||||||
|
from homeassistant.util import dt as dt_util
|
||||||
|
|
||||||
# An infinitesimally small time-delta.
|
# An infinitesimally small time-delta.
|
||||||
EPSILON_DELTA = 0.0000000001
|
EPSILON_DELTA = 0.0000000001
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
"""The tests for the Buienradar sensor platform."""
|
"""The tests for the Buienradar sensor platform."""
|
||||||
from homeassistant.setup import async_setup_component
|
|
||||||
from homeassistant.components import sensor
|
from homeassistant.components import sensor
|
||||||
|
from homeassistant.setup import async_setup_component
|
||||||
|
|
||||||
CONDITIONS = ["stationname", "temperature"]
|
CONDITIONS = ["stationname", "temperature"]
|
||||||
BASE_CONFIG = {
|
BASE_CONFIG = {
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
from homeassistant.components import weather
|
from homeassistant.components import weather
|
||||||
from homeassistant.setup import async_setup_component
|
from homeassistant.setup import async_setup_component
|
||||||
|
|
||||||
|
|
||||||
# Example config snippet from documentation.
|
# Example config snippet from documentation.
|
||||||
BASE_CONFIG = {
|
BASE_CONFIG = {
|
||||||
"weather": [
|
"weather": [
|
||||||
|
|
Loading…
Reference in New Issue