Update pylint to 2.7.3 (#48488)
* Update pylint to 2.7.3 * Add class-const-naming-style * Remove unused-import message * Additional cleanup
This commit is contained in:
parent
9a75019a65
commit
2956eb0902
170 changed files with 163 additions and 288 deletions
|
@ -8,7 +8,7 @@ import voluptuous as vol
|
|||
from homeassistant import config_entries
|
||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME, HTTP_BAD_REQUEST
|
||||
|
||||
from .const import DEFAULT_CACHEDB, DOMAIN, LOGGER # pylint: disable=unused-import
|
||||
from .const import DEFAULT_CACHEDB, DOMAIN, LOGGER
|
||||
|
||||
CONF_MFA = "mfa_code"
|
||||
CONF_POLLING = "polling"
|
||||
|
|
|
@ -13,7 +13,7 @@ from homeassistant.core import callback
|
|||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
from .const import CONF_FORECAST, DOMAIN # pylint:disable=unused-import
|
||||
from .const import CONF_FORECAST, DOMAIN
|
||||
|
||||
|
||||
class AccuWeatherFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
|
|
|
@ -10,7 +10,7 @@ import voluptuous as vol
|
|||
|
||||
from homeassistant import config_entries
|
||||
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .const import DOMAIN
|
||||
|
||||
|
||||
class AcmedaFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
|
|
|
@ -18,7 +18,7 @@ from homeassistant.const import (
|
|||
)
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .const import DOMAIN
|
||||
|
||||
|
||||
class AdGuardHomeFlowHandler(ConfigFlow, domain=DOMAIN):
|
||||
|
|
|
@ -6,8 +6,7 @@ from homeassistant import config_entries
|
|||
from homeassistant.const import CONF_API_KEY, CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
from .const import DEFAULT_NAME
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
from .const import DEFAULT_NAME, DOMAIN
|
||||
|
||||
|
||||
class AemetConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
|
|
|
@ -7,7 +7,7 @@ from homeassistant import config_entries
|
|||
from homeassistant.const import CONF_HOST, CONF_PORT
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
|
||||
from .const import DOMAIN, SERVER_URL # pylint:disable=unused-import
|
||||
from .const import DOMAIN, SERVER_URL
|
||||
from .helpers import generate_url
|
||||
|
||||
DEFAULT_PORT = 8090
|
||||
|
|
|
@ -16,11 +16,7 @@ from homeassistant.const import (
|
|||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
from .const import ( # pylint:disable=unused-import
|
||||
CONF_USE_NEAREST,
|
||||
DOMAIN,
|
||||
NO_AIRLY_SENSORS,
|
||||
)
|
||||
from .const import CONF_USE_NEAREST, DOMAIN, NO_AIRLY_SENSORS
|
||||
|
||||
|
||||
class AirlyFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
|
|
|
@ -10,7 +10,7 @@ from homeassistant.const import CONF_API_KEY, CONF_LATITUDE, CONF_LONGITUDE, CON
|
|||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
from .const import DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ from homeassistant.core import callback
|
|||
from homeassistant.helpers import aiohttp_client, config_validation as cv
|
||||
|
||||
from . import async_get_geography_id
|
||||
from .const import ( # pylint: disable=unused-import
|
||||
from .const import (
|
||||
CONF_CITY,
|
||||
CONF_COUNTRY,
|
||||
CONF_INTEGRATION_TYPE,
|
||||
|
|
|
@ -11,7 +11,7 @@ from homeassistant.components.binary_sensor import DEVICE_CLASSES
|
|||
from homeassistant.const import CONF_HOST, CONF_PORT, CONF_PROTOCOL
|
||||
from homeassistant.core import callback
|
||||
|
||||
from .const import ( # pylint: disable=unused-import
|
||||
from .const import (
|
||||
CONF_ALT_NIGHT_MODE,
|
||||
CONF_AUTO_BYPASS,
|
||||
CONF_CODE_ARM_REQUIRED,
|
||||
|
|
|
@ -18,7 +18,6 @@ INTENTS_API_ENDPOINT = "/api/alexa"
|
|||
|
||||
|
||||
class SpeechType(enum.Enum):
|
||||
# pylint: disable=invalid-name
|
||||
"""The Alexa speech types."""
|
||||
|
||||
plaintext = "PlainText"
|
||||
|
@ -29,7 +28,6 @@ SPEECH_MAPPINGS = {"plain": SpeechType.plaintext, "ssml": SpeechType.ssml}
|
|||
|
||||
|
||||
class CardType(enum.Enum):
|
||||
# pylint: disable=invalid-name
|
||||
"""The Alexa card types."""
|
||||
|
||||
simple = "Simple"
|
||||
|
|
|
@ -7,7 +7,7 @@ from homeassistant import config_entries
|
|||
from homeassistant.const import CONF_API_KEY
|
||||
from homeassistant.helpers import aiohttp_client
|
||||
|
||||
from .const import CONF_APP_KEY, DOMAIN # pylint: disable=unused-import
|
||||
from .const import CONF_APP_KEY, DOMAIN
|
||||
|
||||
|
||||
class AmbientStationFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
|
|
|
@ -21,8 +21,7 @@ from homeassistant.data_entry_flow import AbortFlow
|
|||
from homeassistant.exceptions import HomeAssistantError
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
|
||||
from .const import CONF_CREDENTIALS, CONF_IDENTIFIER, CONF_START_OFF
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .const import CONF_CREDENTIALS, CONF_IDENTIFIER, CONF_START_OFF, DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -31,12 +31,12 @@ from .const import (
|
|||
DEFAULT_INTERFACE,
|
||||
DEFAULT_SSH_PORT,
|
||||
DEFAULT_TRACK_UNKNOWN,
|
||||
DOMAIN,
|
||||
MODE_AP,
|
||||
MODE_ROUTER,
|
||||
PROTOCOL_SSH,
|
||||
PROTOCOL_TELNET,
|
||||
)
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
from .router import get_api
|
||||
|
||||
RESULT_CONN_ERROR = "cannot_connect"
|
||||
|
|
|
@ -6,7 +6,7 @@ from homeassistant import config_entries
|
|||
from homeassistant.const import CONF_HOST, CONF_PORT
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
|
||||
from . import DOMAIN # pylint: disable=unused-import
|
||||
from . import DOMAIN
|
||||
|
||||
DATA_SCHEMA = {
|
||||
vol.Required(CONF_HOST): str,
|
||||
|
|
|
@ -7,8 +7,7 @@ from yalexs.authenticator import ValidationResult
|
|||
from homeassistant import config_entries
|
||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||
|
||||
from .const import CONF_LOGIN_METHOD, LOGIN_METHODS, VERIFICATION_CODE_KEY
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
from .const import CONF_LOGIN_METHOD, DOMAIN, LOGIN_METHODS, VERIFICATION_CODE_KEY
|
||||
from .exceptions import CannotConnect, InvalidAuth, RequireValidation
|
||||
from .gateway import AugustGateway
|
||||
|
||||
|
|
|
@ -10,12 +10,7 @@ from homeassistant.const import CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME
|
|||
from homeassistant.core import callback
|
||||
from homeassistant.helpers import aiohttp_client
|
||||
|
||||
from .const import ( # pylint: disable=unused-import
|
||||
CONF_THRESHOLD,
|
||||
DEFAULT_NAME,
|
||||
DEFAULT_THRESHOLD,
|
||||
DOMAIN,
|
||||
)
|
||||
from .const import CONF_THRESHOLD, DEFAULT_NAME, DEFAULT_THRESHOLD, DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ def trace_automation(hass, automation_id, config, context):
|
|||
|
||||
try:
|
||||
yield trace
|
||||
except Exception as ex: # pylint: disable=broad-except
|
||||
except Exception as ex:
|
||||
if automation_id:
|
||||
trace.set_error(ex)
|
||||
raise ex
|
||||
|
|
|
@ -4,7 +4,7 @@ import aiohttp
|
|||
import voluptuous as vol
|
||||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.components.azure_devops.const import ( # pylint:disable=unused-import
|
||||
from homeassistant.components.azure_devops.const import (
|
||||
CONF_ORG,
|
||||
CONF_PAT,
|
||||
CONF_PROJECT,
|
||||
|
|
|
@ -7,7 +7,7 @@ from homeassistant import config_entries, core, exceptions
|
|||
from homeassistant.const import CONF_PASSWORD, CONF_REGION, CONF_SOURCE, CONF_USERNAME
|
||||
from homeassistant.core import callback
|
||||
|
||||
from . import DOMAIN # pylint: disable=unused-import
|
||||
from . import DOMAIN
|
||||
from .const import CONF_ALLOWED_REGIONS, CONF_READ_ONLY, CONF_USE_LOCATION
|
||||
|
||||
DATA_SCHEMA = vol.Schema(
|
||||
|
|
|
@ -17,7 +17,7 @@ from homeassistant.const import (
|
|||
)
|
||||
from homeassistant.helpers.typing import DiscoveryInfoType
|
||||
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
from .const import DOMAIN
|
||||
from .utils import BondHub
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
|
|
@ -17,12 +17,7 @@ from homeassistant.components.dhcp import IP_ADDRESS, MAC_ADDRESS
|
|||
from homeassistant.const import CONF_HOST, CONF_MAC, CONF_NAME, CONF_TIMEOUT, CONF_TYPE
|
||||
from homeassistant.helpers import config_validation as cv
|
||||
|
||||
from .const import ( # pylint: disable=unused-import
|
||||
DEFAULT_PORT,
|
||||
DEFAULT_TIMEOUT,
|
||||
DOMAIN,
|
||||
DOMAINS_AND_TYPES,
|
||||
)
|
||||
from .const import DEFAULT_PORT, DEFAULT_TIMEOUT, DOMAIN, DOMAINS_AND_TYPES
|
||||
from .helpers import format_mac
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
|
|
@ -8,7 +8,7 @@ import voluptuous as vol
|
|||
from homeassistant import config_entries, exceptions
|
||||
from homeassistant.const import CONF_HOST, CONF_TYPE
|
||||
|
||||
from .const import DOMAIN, PRINTER_TYPES # pylint:disable=unused-import
|
||||
from .const import DOMAIN, PRINTER_TYPES
|
||||
from .utils import get_snmp_engine
|
||||
|
||||
DATA_SCHEMA = vol.Schema(
|
||||
|
|
|
@ -12,11 +12,7 @@ from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_PORT, CONF_USERNA
|
|||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
from homeassistant.helpers.typing import ConfigType
|
||||
|
||||
from .const import ( # pylint:disable=unused-import
|
||||
CONF_DEVICE_IDENT,
|
||||
CONF_PASSKEY,
|
||||
DOMAIN,
|
||||
)
|
||||
from .const import CONF_DEVICE_IDENT, CONF_PASSKEY, DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -13,8 +13,12 @@ from homeassistant.const import CONF_PASSWORD, CONF_TIMEOUT, CONF_USERNAME
|
|||
from homeassistant.core import callback
|
||||
from homeassistant.helpers.typing import ConfigType, HomeAssistantType
|
||||
|
||||
from .const import CONF_FFMPEG_ARGUMENTS, DEFAULT_FFMPEG_ARGUMENTS, DEFAULT_TIMEOUT
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .const import (
|
||||
CONF_FFMPEG_ARGUMENTS,
|
||||
DEFAULT_FFMPEG_ARGUMENTS,
|
||||
DEFAULT_TIMEOUT,
|
||||
DOMAIN,
|
||||
)
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import voluptuous as vol
|
|||
from homeassistant import config_entries
|
||||
from homeassistant.const import CONF_HOST, CONF_PORT
|
||||
|
||||
from .const import DEFAULT_PORT, DOMAIN # pylint: disable=unused-import
|
||||
from .const import DEFAULT_PORT, DOMAIN
|
||||
from .errors import (
|
||||
ConnectionRefused,
|
||||
ConnectionTimeout,
|
||||
|
|
|
@ -20,8 +20,7 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
|||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.typing import HomeAssistantType
|
||||
|
||||
from .const import CONF_TIMESTEP, DEFAULT_NAME, DEFAULT_TIMESTEP
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .const import CONF_TIMESTEP, DEFAULT_NAME, DEFAULT_TIMESTEP, DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -19,8 +19,7 @@ from homeassistant.exceptions import HomeAssistantError
|
|||
from homeassistant.helpers import config_validation as cv
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
|
||||
from .const import CONF_RECORDS
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
from .const import CONF_RECORDS, DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -19,8 +19,12 @@ from homeassistant.core import callback
|
|||
from homeassistant.helpers import aiohttp_client, config_validation as cv
|
||||
from homeassistant.helpers.device_registry import format_mac
|
||||
|
||||
from .const import CONF_CONTROLLER_UNIQUE_ID, DEFAULT_SCAN_INTERVAL, MIN_SCAN_INTERVAL
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
from .const import (
|
||||
CONF_CONTROLLER_UNIQUE_ID,
|
||||
DEFAULT_SCAN_INTERVAL,
|
||||
DOMAIN,
|
||||
MIN_SCAN_INTERVAL,
|
||||
)
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ import voluptuous as vol
|
|||
from homeassistant import config_entries, core
|
||||
from homeassistant.const import CONF_HOST, CONF_PORT
|
||||
|
||||
# pylint: disable=unused-import
|
||||
from .const import AVAILABLE_MODES, CONF_SUPPORTED_MODES, DEFAULT_PORT, DOMAIN
|
||||
|
||||
MODES_SCHEMA = {vol.Required(mode, default=True): bool for mode in AVAILABLE_MODES}
|
||||
|
|
|
@ -4,7 +4,7 @@ import voluptuous as vol
|
|||
from homeassistant import config_entries
|
||||
|
||||
from . import get_coordinator
|
||||
from .const import DOMAIN, OPTION_WORLDWIDE # pylint:disable=unused-import
|
||||
from .const import DOMAIN, OPTION_WORLDWIDE
|
||||
|
||||
|
||||
class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
|
|
|
@ -5,7 +5,6 @@ from homeassistant import config_entries
|
|||
from homeassistant.core import callback
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
# pylint: disable=unused-import
|
||||
from . import DOMAIN
|
||||
|
||||
CONF_STRING = "string"
|
||||
|
|
|
@ -8,11 +8,7 @@ from homeassistant import config_entries
|
|||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||
from homeassistant.core import callback
|
||||
|
||||
from .const import ( # pylint:disable=unused-import
|
||||
CONF_MYDEVOLO,
|
||||
DEFAULT_MYDEVOLO,
|
||||
DOMAIN,
|
||||
)
|
||||
from .const import CONF_MYDEVOLO, DEFAULT_MYDEVOLO, DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -6,14 +6,7 @@ from homeassistant import config_entries
|
|||
from homeassistant.const import CONF_PASSWORD, CONF_UNIT_OF_MEASUREMENT, CONF_USERNAME
|
||||
from homeassistant.core import callback
|
||||
|
||||
from .const import ( # pylint:disable=unused-import
|
||||
CONF_SERVER,
|
||||
DOMAIN,
|
||||
MG_DL,
|
||||
MMOL_L,
|
||||
SERVER_OUS,
|
||||
SERVER_US,
|
||||
)
|
||||
from .const import CONF_SERVER, DOMAIN, MG_DL, MMOL_L, SERVER_OUS, SERVER_US
|
||||
|
||||
DATA_SCHEMA = vol.Schema(
|
||||
{
|
||||
|
|
|
@ -18,8 +18,7 @@ from homeassistant.helpers.typing import (
|
|||
HomeAssistantType,
|
||||
)
|
||||
|
||||
from .const import CONF_RECEIVER_ID
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .const import CONF_RECEIVER_ID, DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -17,8 +17,7 @@ from homeassistant.const import (
|
|||
from homeassistant.core import callback
|
||||
from homeassistant.util.network import is_link_local
|
||||
|
||||
from .const import CONF_EVENTS, DOORBIRD_OUI
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
from .const import CONF_EVENTS, DOMAIN, DOORBIRD_OUI
|
||||
from .util import get_mac_address_from_doorstation_info
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
|
|
@ -16,7 +16,7 @@ from homeassistant import config_entries, core, exceptions
|
|||
from homeassistant.const import CONF_HOST, CONF_PORT
|
||||
from homeassistant.core import callback
|
||||
|
||||
from .const import ( # pylint:disable=unused-import
|
||||
from .const import (
|
||||
CONF_DSMR_VERSION,
|
||||
CONF_SERIAL_ID,
|
||||
CONF_SERIAL_ID_GAS,
|
||||
|
|
|
@ -9,7 +9,7 @@ import voluptuous as vol
|
|||
from homeassistant import config_entries, exceptions
|
||||
from homeassistant.const import CONF_HOST
|
||||
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
from .const import DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@ import voluptuous as vol
|
|||
from homeassistant import config_entries
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
|
||||
# pylint: disable=unused-import
|
||||
from .const import DOMAIN
|
||||
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import voluptuous as vol
|
|||
from homeassistant import config_entries
|
||||
from homeassistant.const import CONF_EMAIL, CONF_PASSWORD
|
||||
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .const import DOMAIN
|
||||
|
||||
|
||||
class EcoNetFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
|
|
|
@ -11,7 +11,7 @@ from homeassistant.const import CONF_HOST, CONF_PORT
|
|||
from homeassistant.core import callback
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
|
||||
from .const import CONF_SERIAL_NUMBER, DOMAIN # pylint: disable=unused-import
|
||||
from .const import CONF_SERIAL_NUMBER, DOMAIN
|
||||
|
||||
|
||||
class ElgatoFlowHandler(ConfigFlow, domain=DOMAIN):
|
||||
|
|
|
@ -21,8 +21,7 @@ from homeassistant.const import (
|
|||
from homeassistant.util import slugify
|
||||
|
||||
from . import async_wait_for_elk_to_sync
|
||||
from .const import CONF_AUTO_CONFIGURE
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
from .const import CONF_AUTO_CONFIGURE, DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -7,8 +7,7 @@ from homeassistant.config_entries import CONN_CLASS_ASSUMED
|
|||
from homeassistant.const import CONF_DEVICE
|
||||
|
||||
from . import dongle
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
from .const import ERROR_INVALID_DONGLE_PATH, LOGGER
|
||||
from .const import DOMAIN, ERROR_INVALID_DONGLE_PATH, LOGGER
|
||||
|
||||
|
||||
class EnOceanFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
|
|
|
@ -9,7 +9,7 @@ from homeassistant import config_entries
|
|||
from homeassistant.const import CONF_ID
|
||||
from homeassistant.helpers import aiohttp_client
|
||||
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
from .const import DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ from homeassistant import config_entries
|
|||
from homeassistant.const import CONF_NAME
|
||||
|
||||
from .board import get_board
|
||||
from .const import CONF_SERIAL_PORT, DOMAIN # pylint: disable=unused-import
|
||||
from .const import CONF_SERIAL_PORT, DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ from homeassistant.const import (
|
|||
)
|
||||
from homeassistant.helpers import aiohttp_client
|
||||
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .const import DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ from homeassistant import config_entries, core, exceptions
|
|||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
|
||||
from .const import DOMAIN, LOGGER # pylint:disable=unused-import
|
||||
from .const import DOMAIN, LOGGER
|
||||
|
||||
DATA_SCHEMA = vol.Schema({"username": str, "password": str})
|
||||
|
||||
|
|
|
@ -14,8 +14,7 @@ from homeassistant.const import (
|
|||
CONF_USERNAME,
|
||||
)
|
||||
|
||||
from .const import BASE_TOKEN_FILENAME
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
from .const import BASE_TOKEN_FILENAME, DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ from homeassistant import config_entries
|
|||
from homeassistant.const import CONF_LATITUDE, CONF_LONGITUDE
|
||||
from homeassistant.helpers import aiohttp_client, config_validation as cv
|
||||
|
||||
from .const import DOMAIN, LOGGER # pylint: disable=unused-import
|
||||
from .const import DOMAIN, LOGGER
|
||||
|
||||
|
||||
class FluNearYouFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
|
|
|
@ -10,7 +10,7 @@ from homeassistant.const import CONF_HOST, CONF_NAME, CONF_PASSWORD, CONF_PORT
|
|||
from homeassistant.core import callback
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
|
||||
from .const import ( # pylint:disable=unused-import
|
||||
from .const import (
|
||||
CONF_LIBRESPOT_JAVA_PORT,
|
||||
CONF_MAX_PLAYLISTS,
|
||||
CONF_TTS_PAUSE_TIME,
|
||||
|
|
|
@ -7,7 +7,7 @@ import voluptuous as vol
|
|||
from homeassistant import config_entries
|
||||
from homeassistant.const import CONF_HOST, CONF_PORT
|
||||
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .const import DOMAIN
|
||||
from .router import get_api
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
|
|
@ -16,8 +16,6 @@ from homeassistant.const import (
|
|||
from homeassistant.core import callback
|
||||
|
||||
from .base import FritzBoxPhonebook
|
||||
|
||||
# pylint:disable=unused-import
|
||||
from .const import (
|
||||
CONF_PHONEBOOK,
|
||||
CONF_PREFIXES,
|
||||
|
|
|
@ -12,7 +12,7 @@ import voluptuous as vol
|
|||
from homeassistant import config_entries
|
||||
from homeassistant.const import CONF_ID, CONF_PASSWORD, CONF_USERNAME
|
||||
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .const import DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -12,12 +12,7 @@ from homeassistant.const import (
|
|||
)
|
||||
from homeassistant.helpers import config_validation as cv
|
||||
|
||||
from .const import ( # pylint: disable=unused-import
|
||||
CONF_CATEGORIES,
|
||||
DEFAULT_RADIUS,
|
||||
DEFAULT_SCAN_INTERVAL,
|
||||
DOMAIN,
|
||||
)
|
||||
from .const import CONF_CATEGORIES, DEFAULT_RADIUS, DEFAULT_SCAN_INTERVAL, DOMAIN
|
||||
|
||||
DATA_SCHEMA = vol.Schema(
|
||||
{vol.Optional(CONF_RADIUS, default=DEFAULT_RADIUS): cv.positive_int}
|
||||
|
|
|
@ -12,7 +12,7 @@ from homeassistant.const import (
|
|||
)
|
||||
from homeassistant.helpers import config_validation as cv
|
||||
|
||||
from .const import ( # pylint: disable=unused-import
|
||||
from .const import (
|
||||
CONF_MINIMUM_MAGNITUDE,
|
||||
CONF_MMI,
|
||||
DEFAULT_MINIMUM_MAGNITUDE,
|
||||
|
|
|
@ -10,7 +10,7 @@ from homeassistant import config_entries
|
|||
from homeassistant.const import CONF_NAME
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
|
||||
from .const import CONF_STATION_ID, DEFAULT_NAME, DOMAIN # pylint:disable=unused-import
|
||||
from .const import CONF_STATION_ID, DEFAULT_NAME, DOMAIN
|
||||
|
||||
DATA_SCHEMA = vol.Schema(
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ from homeassistant import config_entries
|
|||
from homeassistant.const import CONF_HOST, CONF_NAME
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
|
||||
from .const import DEFAULT_NAME, DOMAIN # pylint:disable=unused-import
|
||||
from .const import DEFAULT_NAME, DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -16,8 +16,7 @@ from homeassistant.const import (
|
|||
)
|
||||
|
||||
from .common import get_api
|
||||
from .const import DEVICE_TYPE_GOGOGATE2, DEVICE_TYPE_ISMARTGATE
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .const import DEVICE_TYPE_GOGOGATE2, DEVICE_TYPE_ISMARTGATE, DOMAIN
|
||||
|
||||
|
||||
class Gogogate2FlowHandler(ConfigFlow, domain=DOMAIN):
|
||||
|
|
|
@ -7,7 +7,7 @@ from homeassistant import config_entries, core
|
|||
from homeassistant.const import CONF_IP_ADDRESS, CONF_PORT
|
||||
from homeassistant.core import callback
|
||||
|
||||
from .const import CONF_UID, DOMAIN, LOGGER # pylint:disable=unused-import
|
||||
from .const import CONF_UID, DOMAIN, LOGGER
|
||||
|
||||
DATA_SCHEMA = vol.Schema(
|
||||
{vol.Required(CONF_IP_ADDRESS): str, vol.Required(CONF_PORT, default=7777): int}
|
||||
|
|
|
@ -11,7 +11,7 @@ from homeassistant import config_entries, core, exceptions
|
|||
from homeassistant.const import CONF_API_KEY, CONF_NAME, CONF_URL
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
|
||||
from .const import CONF_API_USER, DEFAULT_URL, DOMAIN # pylint: disable=unused-import
|
||||
from .const import CONF_API_USER, DEFAULT_URL, DOMAIN
|
||||
|
||||
DATA_SCHEMA = vol.Schema(
|
||||
{
|
||||
|
|
|
@ -13,11 +13,7 @@ from homeassistant import config_entries
|
|||
from homeassistant.const import CONF_PASSWORD, CONF_SCAN_INTERVAL, CONF_USERNAME
|
||||
from homeassistant.core import callback
|
||||
|
||||
from .const import ( # pylint:disable=unused-import
|
||||
CONF_CODE,
|
||||
CONFIG_ENTRY_VERSION,
|
||||
DOMAIN,
|
||||
)
|
||||
from .const import CONF_CODE, CONFIG_ENTRY_VERSION, DOMAIN
|
||||
|
||||
|
||||
class HiveFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
|
|
|
@ -31,10 +31,12 @@ from homeassistant.const import (
|
|||
)
|
||||
from homeassistant.core import callback
|
||||
|
||||
from .const import CONNECTION_TIMEOUT, DEFAULT_DEVICE_NAME, DEFAULT_NOTIFY_SERVICE_NAME
|
||||
|
||||
# see https://github.com/PyCQA/pylint/issues/3202 about the DOMAIN's pylint issue
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .const import (
|
||||
CONNECTION_TIMEOUT,
|
||||
DEFAULT_DEVICE_NAME,
|
||||
DEFAULT_NOTIFY_SERVICE_NAME,
|
||||
DOMAIN,
|
||||
)
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ from homeassistant.core import callback
|
|||
from homeassistant.helpers import aiohttp_client
|
||||
|
||||
from .bridge import authenticate_bridge
|
||||
from .const import ( # pylint: disable=unused-import
|
||||
from .const import (
|
||||
CONF_ALLOW_HUE_GROUPS,
|
||||
CONF_ALLOW_UNREACHABLE,
|
||||
DEFAULT_ALLOW_HUE_GROUPS,
|
||||
|
|
|
@ -8,7 +8,7 @@ from homeassistant import config_entries
|
|||
from homeassistant.const import CONF_ID, CONF_PASSWORD, CONF_USERNAME
|
||||
from homeassistant.data_entry_flow import AbortFlow
|
||||
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .const import DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -10,8 +10,7 @@ from homeassistant.const import CONF_HOST, CONF_NAME
|
|||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
|
||||
from . import async_get_device_info
|
||||
from .const import DEVICE_NAME, DEVICE_SERIAL_NUMBER, HUB_EXCEPTIONS
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
from .const import DEVICE_NAME, DEVICE_SERIAL_NUMBER, DOMAIN, HUB_EXCEPTIONS
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -31,8 +31,6 @@ import homeassistant.helpers.config_validation as cv
|
|||
from homeassistant.helpers.typing import ConfigType
|
||||
|
||||
from . import create_hyperion_client
|
||||
|
||||
# pylint: disable=unused-import
|
||||
from .const import (
|
||||
CONF_AUTH_ID,
|
||||
CONF_CREATE_TOKEN,
|
||||
|
|
|
@ -16,7 +16,6 @@ from homeassistant.const import (
|
|||
from homeassistant.core import callback
|
||||
from homeassistant.helpers.dispatcher import async_dispatcher_send
|
||||
|
||||
# pylint: disable=unused-import
|
||||
from .const import (
|
||||
CONF_HOUSECODE,
|
||||
CONF_HUB_VERSION,
|
||||
|
|
|
@ -26,8 +26,7 @@ from homeassistant.const import (
|
|||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
from homeassistant.helpers.typing import ConfigType, HomeAssistantType
|
||||
|
||||
from .const import CONF_BASE_PATH, CONF_SERIAL, CONF_UUID
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .const import CONF_BASE_PATH, CONF_SERIAL, CONF_UUID, DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import voluptuous as vol
|
|||
from homeassistant import config_entries
|
||||
from homeassistant.helpers import aiohttp_client
|
||||
|
||||
from .const import CONF_ZIP_CODE, DOMAIN # pylint:disable=unused-import
|
||||
from .const import CONF_ZIP_CODE, DOMAIN
|
||||
|
||||
|
||||
class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
|
|
|
@ -4,7 +4,6 @@ import voluptuous as vol
|
|||
from homeassistant import config_entries
|
||||
from homeassistant.core import callback
|
||||
|
||||
# pylint: disable=unused-import
|
||||
from .const import CALC_METHODS, CONF_CALC_METHOD, DEFAULT_CALC_METHOD, DOMAIN, NAME
|
||||
|
||||
|
||||
|
|
|
@ -22,10 +22,10 @@ from .const import (
|
|||
DEFAULT_SENSOR_STRING,
|
||||
DEFAULT_TLS_VERSION,
|
||||
DEFAULT_VAR_SENSOR_STRING,
|
||||
DOMAIN,
|
||||
ISY_URL_POSTFIX,
|
||||
UDN_UUID_PREFIX,
|
||||
)
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ from homeassistant import config_entries, core, exceptions
|
|||
from homeassistant.const import CONF_ACCESS_TOKEN
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
from .const import DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -11,8 +11,7 @@ from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_USERNAME
|
|||
from homeassistant.core import callback
|
||||
from homeassistant.helpers import aiohttp_client
|
||||
|
||||
from .const import CONF_REVERSE
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
from .const import CONF_REVERSE, DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -24,8 +24,8 @@ from .const import (
|
|||
DEFAULT_SSL,
|
||||
DEFAULT_TIMEOUT,
|
||||
DEFAULT_WS_PORT,
|
||||
DOMAIN,
|
||||
)
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import voluptuous as vol
|
|||
from homeassistant import config_entries
|
||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
from .const import DOMAIN
|
||||
from .hub import LitterRobotHub
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
|
|
@ -21,10 +21,10 @@ from .const import (
|
|||
CONF_CA_CERTS,
|
||||
CONF_CERTFILE,
|
||||
CONF_KEYFILE,
|
||||
DOMAIN,
|
||||
ERROR_CANNOT_CONNECT,
|
||||
STEP_IMPORT_FAILED,
|
||||
)
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
|
||||
HOSTNAME = "hostname"
|
||||
|
||||
|
|
|
@ -13,9 +13,7 @@ from homeassistant import config_entries
|
|||
from homeassistant.const import CONF_EMAIL, CONF_PASSWORD, CONF_REGION
|
||||
from homeassistant.helpers import aiohttp_client
|
||||
|
||||
# https://github.com/PyCQA/pylint/issues/3202
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .const import MAZDA_REGIONS
|
||||
from .const import DOMAIN, MAZDA_REGIONS
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ from homeassistant.const import (
|
|||
HTTP_UNAUTHORIZED,
|
||||
)
|
||||
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .const import DOMAIN
|
||||
|
||||
|
||||
class FlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
|
|
|
@ -9,8 +9,7 @@ from homeassistant.config_entries import SOURCE_IMPORT
|
|||
from homeassistant.const import CONF_LATITUDE, CONF_LONGITUDE, CONF_MODE
|
||||
from homeassistant.core import callback
|
||||
|
||||
from .const import CONF_CITY, FORECAST_MODE, FORECAST_MODE_DAILY
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .const import CONF_CITY, DOMAIN, FORECAST_MODE, FORECAST_MODE_DAILY
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ from homeassistant import config_entries, core, exceptions
|
|||
from homeassistant.const import CONF_API_KEY, CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME
|
||||
from homeassistant.helpers import config_validation as cv
|
||||
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .const import DOMAIN
|
||||
from .data import MetOfficeData
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
|
|
@ -6,7 +6,7 @@ from homeassistant import config_entries
|
|||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
from .const import DOMAIN
|
||||
|
||||
DATA_SCHEMA = vol.Schema(
|
||||
{vol.Required(CONF_USERNAME): str, vol.Required(CONF_PASSWORD): str}
|
||||
|
|
|
@ -11,12 +11,7 @@ from homeassistant.config_entries import ConfigFlow
|
|||
from homeassistant.const import CONF_HOST, CONF_NAME, CONF_PORT
|
||||
|
||||
from . import MinecraftServer, helpers
|
||||
from .const import ( # pylint: disable=unused-import
|
||||
DEFAULT_HOST,
|
||||
DEFAULT_NAME,
|
||||
DEFAULT_PORT,
|
||||
DOMAIN,
|
||||
)
|
||||
from .const import DEFAULT_HOST, DEFAULT_NAME, DEFAULT_PORT, DOMAIN
|
||||
|
||||
|
||||
class MinecraftServerConfigFlow(ConfigFlow, domain=DOMAIN):
|
||||
|
|
|
@ -16,8 +16,8 @@ from .const import (
|
|||
CONF_SOURCE_5,
|
||||
CONF_SOURCE_6,
|
||||
CONF_SOURCES,
|
||||
DOMAIN,
|
||||
)
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@ import voluptuous as vol
|
|||
from homeassistant import config_entries
|
||||
from homeassistant.const import CONF_API_KEY, CONF_HOST
|
||||
|
||||
# pylint: disable=unused-import
|
||||
from .const import DEFAULT_GATEWAY_NAME, DOMAIN
|
||||
from .gateway import ConnectMotionGateway
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ from homeassistant import config_entries, core, exceptions
|
|||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||
from homeassistant.helpers import aiohttp_client
|
||||
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
from .const import DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import voluptuous as vol
|
|||
from homeassistant import config_entries, core, exceptions
|
||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
from .const import DOMAIN
|
||||
from .util import is_invalid_auth_code
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
|
|
@ -9,7 +9,7 @@ import voluptuous as vol
|
|||
from homeassistant import config_entries, exceptions
|
||||
from homeassistant.const import CONF_API_KEY, CONF_URL
|
||||
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
from .const import DOMAIN
|
||||
from .utils import hash_from_url
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
|
|
@ -7,7 +7,7 @@ from homeassistant import config_entries
|
|||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||
from homeassistant.helpers import aiohttp_client
|
||||
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .const import DOMAIN
|
||||
|
||||
|
||||
class NotionFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
|
|
|
@ -13,8 +13,7 @@ from homeassistant.const import (
|
|||
HTTP_INTERNAL_SERVER_ERROR,
|
||||
)
|
||||
|
||||
from .const import CONF_SERIAL_NUMBER
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
from .const import CONF_SERIAL_NUMBER, DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -10,11 +10,7 @@ from homeassistant import config_entries, exceptions
|
|||
from homeassistant.components.dhcp import HOSTNAME, IP_ADDRESS
|
||||
from homeassistant.const import CONF_HOST, CONF_PORT, CONF_TOKEN
|
||||
|
||||
from .const import ( # pylint: disable=unused-import
|
||||
DEFAULT_PORT,
|
||||
DEFAULT_TIMEOUT,
|
||||
DOMAIN,
|
||||
)
|
||||
from .const import DEFAULT_PORT, DEFAULT_TIMEOUT, DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -22,12 +22,12 @@ from .const import (
|
|||
DEFAULT_HOST,
|
||||
DEFAULT_PORT,
|
||||
DEFAULT_SCAN_INTERVAL,
|
||||
DOMAIN,
|
||||
KEY_STATUS,
|
||||
KEY_STATUS_DISPLAY,
|
||||
SENSOR_NAME,
|
||||
SENSOR_TYPES,
|
||||
)
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ from homeassistant.helpers import config_validation as cv
|
|||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
|
||||
from . import base_unique_id
|
||||
from .const import CONF_STATION, DOMAIN # pylint:disable=unused-import
|
||||
from .const import CONF_STATION, DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -26,8 +26,8 @@ from .const import (
|
|||
DEFAULT_SCAN_INTERVAL,
|
||||
DEFAULT_SSL,
|
||||
DEFAULT_VERIFY_SSL,
|
||||
DOMAIN,
|
||||
)
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .coordinator import NZBGetAPI, NZBGetAPIException
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
|
|
@ -22,7 +22,6 @@ from homeassistant.const import (
|
|||
)
|
||||
from homeassistant.core import callback
|
||||
|
||||
# pylint: disable=unused-import
|
||||
from .const import (
|
||||
CONF_DEVICE_ID,
|
||||
CONF_RTSP_TRANSPORT,
|
||||
|
|
|
@ -12,7 +12,7 @@ from homeassistant.const import (
|
|||
)
|
||||
from homeassistant.helpers import aiohttp_client, config_validation as cv
|
||||
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .const import DOMAIN
|
||||
|
||||
CONFIG_SCHEMA = vol.Schema(
|
||||
{
|
||||
|
|
|
@ -20,10 +20,10 @@ from .const import (
|
|||
DEFAULT_FORECAST_MODE,
|
||||
DEFAULT_LANGUAGE,
|
||||
DEFAULT_NAME,
|
||||
DOMAIN,
|
||||
FORECAST_MODES,
|
||||
LANGUAGES,
|
||||
)
|
||||
from .const import DOMAIN # pylint:disable=unused-import
|
||||
|
||||
|
||||
class OpenWeatherMapConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
|
|
|
@ -7,7 +7,7 @@ from homeassistant import config_entries
|
|||
from homeassistant.config_entries import ConfigFlow
|
||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .const import DOMAIN
|
||||
|
||||
REAUTH_SCHEMA = vol.Schema({vol.Required(CONF_PASSWORD): str})
|
||||
USER_SCHEMA = vol.Schema(
|
||||
|
|
|
@ -4,7 +4,7 @@ import secrets
|
|||
from homeassistant import config_entries
|
||||
from homeassistant.const import CONF_WEBHOOK_ID
|
||||
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .const import DOMAIN
|
||||
from .helper import supports_encryption
|
||||
|
||||
CONF_SECRET = "secret"
|
||||
|
|
|
@ -9,7 +9,7 @@ import voluptuous as vol
|
|||
from homeassistant import config_entries
|
||||
from homeassistant.const import CONF_HOST, CONF_NAME, CONF_PIN, CONF_PORT
|
||||
|
||||
from .const import ( # pylint: disable=unused-import
|
||||
from .const import (
|
||||
ATTR_DEVICE_INFO,
|
||||
ATTR_FRIENDLY_NAME,
|
||||
ATTR_UDN,
|
||||
|
|
|
@ -17,12 +17,7 @@ from homeassistant.const import (
|
|||
)
|
||||
|
||||
from . import LOGGER
|
||||
from .const import ( # pylint:disable=unused-import
|
||||
CONF_SYSTEM,
|
||||
CONST_APP_ID,
|
||||
CONST_APP_NAME,
|
||||
DOMAIN,
|
||||
)
|
||||
from .const import CONF_SYSTEM, CONST_APP_ID, CONST_APP_NAME, DOMAIN
|
||||
|
||||
|
||||
async def validate_input(
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue