Sort imports (#20984)

This commit is contained in:
Fabian Affolter 2019-02-11 20:46:21 +01:00 committed by Charles Garwood
parent 868820c424
commit 4cb408f8f9
3 changed files with 12 additions and 13 deletions

View File

@ -8,9 +8,9 @@ import asyncio
from datetime import timedelta from datetime import timedelta
import logging import logging
import voluptuous as vol
import attr
import aiohttp import aiohttp
import attr
import voluptuous as vol
from homeassistant.const import ( from homeassistant.const import (
CONF_HOST, CONF_PASSWORD, EVENT_HOMEASSISTANT_STOP) CONF_HOST, CONF_PASSWORD, EVENT_HOMEASSISTANT_STOP)
@ -144,7 +144,7 @@ async def _retry_login(hass, modem_data, password):
import eternalegypt import eternalegypt
_LOGGER.warning( _LOGGER.warning(
"Could not connect to %s. Will keep trying.", modem_data.host) "Could not connect to %s. Will keep trying", modem_data.host)
modem_data.connected = False modem_data.connected = False
delay = 15 delay = 15

View File

@ -1,22 +1,21 @@
"""Netgear LTE platform for notify component. """
The Netgear LTE platform for notify component.
For more details about this platform, please refer to the documentation at For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/notify.netgear_lte/ https://home-assistant.io/components/notify.netgear_lte/
""" """
import logging import logging
import voluptuous as vol
import attr import attr
import voluptuous as vol
from homeassistant.components.notify import ( from homeassistant.components.notify import (
BaseNotificationService, ATTR_TARGET, PLATFORM_SCHEMA) ATTR_TARGET, PLATFORM_SCHEMA, BaseNotificationService)
from homeassistant.const import CONF_HOST from homeassistant.const import CONF_HOST
import homeassistant.helpers.config_validation as cv import homeassistant.helpers.config_validation as cv
from ..netgear_lte import DATA_KEY from ..netgear_lte import DATA_KEY
DEPENDENCIES = ['netgear_lte'] DEPENDENCIES = ['netgear_lte']
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)

View File

@ -1,17 +1,17 @@
"""Netgear LTE sensors. """
Support for Netgear LTE sensors.
For more details about this platform, please refer to the documentation at For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.netgear_lte/ https://home-assistant.io/components/sensor.netgear_lte/
""" """
import voluptuous as vol
import attr import attr
import voluptuous as vol
from homeassistant.const import CONF_HOST, CONF_SENSORS
from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import CONF_HOST, CONF_SENSORS
from homeassistant.exceptions import PlatformNotReady from homeassistant.exceptions import PlatformNotReady
from homeassistant.helpers.entity import Entity
import homeassistant.helpers.config_validation as cv import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import Entity
from ..netgear_lte import DATA_KEY from ..netgear_lte import DATA_KEY