Sort imports according to PEP8 for components starting with "N" (#29773)
This commit is contained in:
parent
ee1cc3b3dd
commit
1ab1808307
16 changed files with 70 additions and 71 deletions
|
@ -1,7 +1,7 @@
|
||||||
"""Support for Ness D8X/D16X devices."""
|
"""Support for Ness D8X/D16X devices."""
|
||||||
|
from collections import namedtuple
|
||||||
import datetime
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
from collections import namedtuple
|
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
|
@ -9,9 +9,9 @@ from homeassistant.components.binary_sensor import DEVICE_CLASSES
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
ATTR_CODE,
|
ATTR_CODE,
|
||||||
ATTR_STATE,
|
ATTR_STATE,
|
||||||
EVENT_HOMEASSISTANT_STOP,
|
|
||||||
CONF_SCAN_INTERVAL,
|
|
||||||
CONF_HOST,
|
CONF_HOST,
|
||||||
|
CONF_SCAN_INTERVAL,
|
||||||
|
EVENT_HOMEASSISTANT_STOP,
|
||||||
)
|
)
|
||||||
from homeassistant.helpers import config_validation as cv
|
from homeassistant.helpers import config_validation as cv
|
||||||
from homeassistant.helpers.discovery import async_load_platform
|
from homeassistant.helpers.discovery import async_load_platform
|
||||||
|
|
|
@ -4,21 +4,21 @@ import logging
|
||||||
from pynetgear import Netgear
|
from pynetgear import Netgear
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
|
||||||
from homeassistant.components.device_tracker import (
|
from homeassistant.components.device_tracker import (
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
PLATFORM_SCHEMA,
|
PLATFORM_SCHEMA,
|
||||||
DeviceScanner,
|
DeviceScanner,
|
||||||
)
|
)
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
CONF_HOST,
|
|
||||||
CONF_PASSWORD,
|
|
||||||
CONF_USERNAME,
|
|
||||||
CONF_PORT,
|
|
||||||
CONF_SSL,
|
|
||||||
CONF_DEVICES,
|
CONF_DEVICES,
|
||||||
CONF_EXCLUDE,
|
CONF_EXCLUDE,
|
||||||
|
CONF_HOST,
|
||||||
|
CONF_PASSWORD,
|
||||||
|
CONF_PORT,
|
||||||
|
CONF_SSL,
|
||||||
|
CONF_USERNAME,
|
||||||
)
|
)
|
||||||
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,6 @@ import requests
|
||||||
from requests.auth import HTTPBasicAuth, HTTPDigestAuth
|
from requests.auth import HTTPBasicAuth, HTTPDigestAuth
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.const import CONF_TIMEOUT, CONF_HOST
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
|
||||||
|
|
||||||
from homeassistant.components.notify import (
|
from homeassistant.components.notify import (
|
||||||
ATTR_DATA,
|
ATTR_DATA,
|
||||||
ATTR_TITLE,
|
ATTR_TITLE,
|
||||||
|
@ -17,6 +14,8 @@ from homeassistant.components.notify import (
|
||||||
PLATFORM_SCHEMA,
|
PLATFORM_SCHEMA,
|
||||||
BaseNotificationService,
|
BaseNotificationService,
|
||||||
)
|
)
|
||||||
|
from homeassistant.const import CONF_HOST, CONF_TIMEOUT
|
||||||
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
"""Support for the Nissan Leaf Carwings/Nissan Connect API."""
|
"""Support for the Nissan Leaf Carwings/Nissan Connect API."""
|
||||||
from datetime import datetime, timedelta
|
|
||||||
import asyncio
|
import asyncio
|
||||||
|
from datetime import datetime, timedelta
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from pycarwings2 import CarwingsError, Session
|
from pycarwings2 import CarwingsError, Session
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
|
|
|
@ -5,11 +5,11 @@ from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
from aiohttp.hdrs import USER_AGENT, AUTHORIZATION
|
from aiohttp.hdrs import AUTHORIZATION, USER_AGENT
|
||||||
import async_timeout
|
import async_timeout
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.const import CONF_DOMAIN, CONF_TIMEOUT, CONF_PASSWORD, CONF_USERNAME
|
from homeassistant.const import CONF_DOMAIN, CONF_PASSWORD, CONF_TIMEOUT, CONF_USERNAME
|
||||||
from homeassistant.helpers.aiohttp_client import SERVER_SOFTWARE
|
from homeassistant.helpers.aiohttp_client import SERVER_SOFTWARE
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,19 @@
|
||||||
"""Provides functionality to notify people."""
|
"""Provides functionality to notify people."""
|
||||||
import asyncio
|
import asyncio
|
||||||
import logging
|
|
||||||
from functools import partial
|
from functools import partial
|
||||||
|
import logging
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.setup import async_prepare_setup_platform
|
|
||||||
from homeassistant.exceptions import HomeAssistantError
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
|
||||||
from homeassistant.const import CONF_NAME, CONF_PLATFORM
|
from homeassistant.const import CONF_NAME, CONF_PLATFORM
|
||||||
|
from homeassistant.exceptions import HomeAssistantError
|
||||||
from homeassistant.helpers import config_per_platform, discovery
|
from homeassistant.helpers import config_per_platform, discovery
|
||||||
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.typing import HomeAssistantType
|
from homeassistant.helpers.typing import HomeAssistantType
|
||||||
|
from homeassistant.setup import async_prepare_setup_platform
|
||||||
from homeassistant.util import slugify
|
from homeassistant.util import slugify
|
||||||
|
|
||||||
|
|
||||||
# mypy: allow-untyped-defs, no-check-untyped-defs
|
# mypy: allow-untyped-defs, no-check-untyped-defs
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
|
@ -9,32 +9,32 @@ from pynws import SimpleNWS
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.weather import (
|
from homeassistant.components.weather import (
|
||||||
WeatherEntity,
|
|
||||||
PLATFORM_SCHEMA,
|
|
||||||
ATTR_FORECAST_CONDITION,
|
ATTR_FORECAST_CONDITION,
|
||||||
ATTR_FORECAST_TEMP,
|
ATTR_FORECAST_TEMP,
|
||||||
ATTR_FORECAST_TIME,
|
ATTR_FORECAST_TIME,
|
||||||
ATTR_FORECAST_WIND_SPEED,
|
|
||||||
ATTR_FORECAST_WIND_BEARING,
|
ATTR_FORECAST_WIND_BEARING,
|
||||||
|
ATTR_FORECAST_WIND_SPEED,
|
||||||
|
PLATFORM_SCHEMA,
|
||||||
|
WeatherEntity,
|
||||||
)
|
)
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
CONF_API_KEY,
|
CONF_API_KEY,
|
||||||
CONF_NAME,
|
|
||||||
CONF_LATITUDE,
|
CONF_LATITUDE,
|
||||||
CONF_LONGITUDE,
|
CONF_LONGITUDE,
|
||||||
CONF_MODE,
|
CONF_MODE,
|
||||||
|
CONF_NAME,
|
||||||
LENGTH_KILOMETERS,
|
LENGTH_KILOMETERS,
|
||||||
LENGTH_METERS,
|
LENGTH_METERS,
|
||||||
LENGTH_MILES,
|
LENGTH_MILES,
|
||||||
PRESSURE_HPA,
|
PRESSURE_HPA,
|
||||||
PRESSURE_PA,
|
|
||||||
PRESSURE_INHG,
|
PRESSURE_INHG,
|
||||||
|
PRESSURE_PA,
|
||||||
TEMP_CELSIUS,
|
TEMP_CELSIUS,
|
||||||
TEMP_FAHRENHEIT,
|
TEMP_FAHRENHEIT,
|
||||||
)
|
)
|
||||||
from homeassistant.exceptions import PlatformNotReady
|
from homeassistant.exceptions import PlatformNotReady
|
||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
|
||||||
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.util import Throttle
|
from homeassistant.util import Throttle
|
||||||
from homeassistant.util.distance import convert as convert_distance
|
from homeassistant.util.distance import convert as convert_distance
|
||||||
from homeassistant.util.pressure import convert as convert_pressure
|
from homeassistant.util.pressure import convert as convert_pressure
|
||||||
|
|
|
@ -4,8 +4,8 @@ from datetime import timedelta
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from homeassistant.setup import async_setup_component
|
|
||||||
from homeassistant.components import namecheapdns
|
from homeassistant.components import namecheapdns
|
||||||
|
from homeassistant.setup import async_setup_component
|
||||||
from homeassistant.util.dt import utcnow
|
from homeassistant.util.dt import utcnow
|
||||||
|
|
||||||
from tests.common import async_fire_time_changed
|
from tests.common import async_fire_time_changed
|
||||||
|
|
|
@ -1,36 +1,37 @@
|
||||||
"""Tests for the ness_alarm component."""
|
"""Tests for the ness_alarm component."""
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
|
from asynctest import MagicMock, patch
|
||||||
import pytest
|
import pytest
|
||||||
from asynctest import patch, MagicMock
|
|
||||||
|
|
||||||
from homeassistant.components import alarm_control_panel
|
from homeassistant.components import alarm_control_panel
|
||||||
from homeassistant.components.ness_alarm import (
|
from homeassistant.components.ness_alarm import (
|
||||||
DOMAIN,
|
|
||||||
CONF_DEVICE_PORT,
|
|
||||||
CONF_ZONE_NAME,
|
|
||||||
CONF_ZONES,
|
|
||||||
CONF_ZONE_ID,
|
|
||||||
SERVICE_AUX,
|
|
||||||
SERVICE_PANIC,
|
|
||||||
ATTR_CODE,
|
ATTR_CODE,
|
||||||
ATTR_OUTPUT_ID,
|
ATTR_OUTPUT_ID,
|
||||||
|
CONF_DEVICE_PORT,
|
||||||
|
CONF_ZONE_ID,
|
||||||
|
CONF_ZONE_NAME,
|
||||||
|
CONF_ZONES,
|
||||||
|
DOMAIN,
|
||||||
|
SERVICE_AUX,
|
||||||
|
SERVICE_PANIC,
|
||||||
)
|
)
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
STATE_ALARM_ARMING,
|
|
||||||
SERVICE_ALARM_DISARM,
|
|
||||||
ATTR_ENTITY_ID,
|
ATTR_ENTITY_ID,
|
||||||
|
CONF_HOST,
|
||||||
SERVICE_ALARM_ARM_AWAY,
|
SERVICE_ALARM_ARM_AWAY,
|
||||||
SERVICE_ALARM_ARM_HOME,
|
SERVICE_ALARM_ARM_HOME,
|
||||||
|
SERVICE_ALARM_DISARM,
|
||||||
SERVICE_ALARM_TRIGGER,
|
SERVICE_ALARM_TRIGGER,
|
||||||
STATE_ALARM_DISARMED,
|
|
||||||
STATE_ALARM_ARMED_AWAY,
|
STATE_ALARM_ARMED_AWAY,
|
||||||
|
STATE_ALARM_ARMING,
|
||||||
|
STATE_ALARM_DISARMED,
|
||||||
STATE_ALARM_PENDING,
|
STATE_ALARM_PENDING,
|
||||||
STATE_ALARM_TRIGGERED,
|
STATE_ALARM_TRIGGERED,
|
||||||
STATE_UNKNOWN,
|
STATE_UNKNOWN,
|
||||||
CONF_HOST,
|
|
||||||
)
|
)
|
||||||
from homeassistant.setup import async_setup_component
|
from homeassistant.setup import async_setup_component
|
||||||
|
|
||||||
from tests.common import MockDependency
|
from tests.common import MockDependency
|
||||||
|
|
||||||
VALID_CONFIG = {
|
VALID_CONFIG = {
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
"""The tests for the nexbus sensor component."""
|
"""The tests for the nexbus sensor component."""
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
|
|
||||||
import pytest
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import homeassistant.components.sensor as sensor
|
import pytest
|
||||||
|
|
||||||
import homeassistant.components.nextbus.sensor as nextbus
|
import homeassistant.components.nextbus.sensor as nextbus
|
||||||
|
import homeassistant.components.sensor as sensor
|
||||||
|
|
||||||
from tests.common import assert_setup_component, async_setup_component
|
from tests.common import assert_setup_component, async_setup_component
|
||||||
|
|
||||||
|
|
||||||
VALID_AGENCY = "sf-muni"
|
VALID_AGENCY = "sf-muni"
|
||||||
VALID_ROUTE = "F"
|
VALID_ROUTE = "F"
|
||||||
VALID_STOP = "5650"
|
VALID_STOP = "5650"
|
||||||
|
|
|
@ -4,8 +4,8 @@ from datetime import timedelta
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from homeassistant.setup import async_setup_component
|
|
||||||
from homeassistant.components import no_ip
|
from homeassistant.components import no_ip
|
||||||
|
from homeassistant.setup import async_setup_component
|
||||||
from homeassistant.util.dt import utcnow
|
from homeassistant.util.dt import utcnow
|
||||||
|
|
||||||
from tests.common import async_fire_time_changed
|
from tests.common import async_fire_time_changed
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
"""Define tests for the Notion config flow."""
|
"""Define tests for the Notion config flow."""
|
||||||
import aionotion
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
import aionotion
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from homeassistant import data_entry_flow
|
from homeassistant import data_entry_flow
|
||||||
|
|
|
@ -4,7 +4,8 @@ from unittest.mock import patch
|
||||||
|
|
||||||
from homeassistant.components import sensor
|
from homeassistant.components import sensor
|
||||||
from homeassistant.setup import setup_component
|
from homeassistant.setup import setup_component
|
||||||
from tests.common import get_test_home_assistant, assert_setup_component
|
|
||||||
|
from tests.common import assert_setup_component, get_test_home_assistant
|
||||||
|
|
||||||
VALID_CONFIG = {
|
VALID_CONFIG = {
|
||||||
"platform": "nsw_fuel_station",
|
"platform": "nsw_fuel_station",
|
||||||
|
|
|
@ -3,22 +3,22 @@ import datetime
|
||||||
from unittest.mock import ANY
|
from unittest.mock import ANY
|
||||||
|
|
||||||
from aio_geojson_nsw_rfs_incidents import NswRuralFireServiceIncidentsFeed
|
from aio_geojson_nsw_rfs_incidents import NswRuralFireServiceIncidentsFeed
|
||||||
from asynctest.mock import patch, MagicMock, call
|
from asynctest.mock import MagicMock, call, patch
|
||||||
|
|
||||||
from homeassistant.components import geo_location
|
from homeassistant.components import geo_location
|
||||||
from homeassistant.components.geo_location import ATTR_SOURCE
|
from homeassistant.components.geo_location import ATTR_SOURCE
|
||||||
from homeassistant.components.nsw_rural_fire_service_feed.geo_location import (
|
from homeassistant.components.nsw_rural_fire_service_feed.geo_location import (
|
||||||
ATTR_EXTERNAL_ID,
|
|
||||||
SCAN_INTERVAL,
|
|
||||||
ATTR_CATEGORY,
|
ATTR_CATEGORY,
|
||||||
|
ATTR_COUNCIL_AREA,
|
||||||
|
ATTR_EXTERNAL_ID,
|
||||||
ATTR_FIRE,
|
ATTR_FIRE,
|
||||||
ATTR_LOCATION,
|
ATTR_LOCATION,
|
||||||
ATTR_COUNCIL_AREA,
|
ATTR_PUBLICATION_DATE,
|
||||||
|
ATTR_RESPONSIBLE_AGENCY,
|
||||||
|
ATTR_SIZE,
|
||||||
ATTR_STATUS,
|
ATTR_STATUS,
|
||||||
ATTR_TYPE,
|
ATTR_TYPE,
|
||||||
ATTR_SIZE,
|
SCAN_INTERVAL,
|
||||||
ATTR_RESPONSIBLE_AGENCY,
|
|
||||||
ATTR_PUBLICATION_DATE,
|
|
||||||
)
|
)
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
ATTR_ATTRIBUTION,
|
ATTR_ATTRIBUTION,
|
||||||
|
@ -34,9 +34,10 @@ from homeassistant.const import (
|
||||||
EVENT_HOMEASSISTANT_STOP,
|
EVENT_HOMEASSISTANT_STOP,
|
||||||
)
|
)
|
||||||
from homeassistant.setup import async_setup_component
|
from homeassistant.setup import async_setup_component
|
||||||
from tests.common import assert_setup_component, async_fire_time_changed
|
|
||||||
import homeassistant.util.dt as dt_util
|
import homeassistant.util.dt as dt_util
|
||||||
|
|
||||||
|
from tests.common import assert_setup_component, async_fire_time_changed
|
||||||
|
|
||||||
CONFIG = {
|
CONFIG = {
|
||||||
geo_location.DOMAIN: [{"platform": "nsw_rural_fire_service_feed", CONF_RADIUS: 200}]
|
geo_location.DOMAIN: [{"platform": "nsw_rural_fire_service_feed", CONF_RADIUS: 200}]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
"""Tests for the NWS weather component."""
|
"""Tests for the NWS weather component."""
|
||||||
from homeassistant.components.nws.weather import ATTR_FORECAST_PRECIP_PROB
|
from homeassistant.components.nws.weather import ATTR_FORECAST_PRECIP_PROB
|
||||||
from homeassistant.components.weather import (
|
|
||||||
ATTR_WEATHER_HUMIDITY,
|
|
||||||
ATTR_WEATHER_PRESSURE,
|
|
||||||
ATTR_WEATHER_TEMPERATURE,
|
|
||||||
ATTR_WEATHER_VISIBILITY,
|
|
||||||
ATTR_WEATHER_WIND_BEARING,
|
|
||||||
ATTR_WEATHER_WIND_SPEED,
|
|
||||||
)
|
|
||||||
from homeassistant.components.weather import (
|
from homeassistant.components.weather import (
|
||||||
ATTR_FORECAST,
|
ATTR_FORECAST,
|
||||||
ATTR_FORECAST_CONDITION,
|
ATTR_FORECAST_CONDITION,
|
||||||
|
@ -15,25 +7,30 @@ from homeassistant.components.weather import (
|
||||||
ATTR_FORECAST_TIME,
|
ATTR_FORECAST_TIME,
|
||||||
ATTR_FORECAST_WIND_BEARING,
|
ATTR_FORECAST_WIND_BEARING,
|
||||||
ATTR_FORECAST_WIND_SPEED,
|
ATTR_FORECAST_WIND_SPEED,
|
||||||
|
ATTR_WEATHER_HUMIDITY,
|
||||||
|
ATTR_WEATHER_PRESSURE,
|
||||||
|
ATTR_WEATHER_TEMPERATURE,
|
||||||
|
ATTR_WEATHER_VISIBILITY,
|
||||||
|
ATTR_WEATHER_WIND_BEARING,
|
||||||
|
ATTR_WEATHER_WIND_SPEED,
|
||||||
)
|
)
|
||||||
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
LENGTH_KILOMETERS,
|
LENGTH_KILOMETERS,
|
||||||
LENGTH_METERS,
|
LENGTH_METERS,
|
||||||
LENGTH_MILES,
|
LENGTH_MILES,
|
||||||
|
PRESSURE_HPA,
|
||||||
PRESSURE_INHG,
|
PRESSURE_INHG,
|
||||||
PRESSURE_PA,
|
PRESSURE_PA,
|
||||||
PRESSURE_HPA,
|
|
||||||
TEMP_CELSIUS,
|
TEMP_CELSIUS,
|
||||||
TEMP_FAHRENHEIT,
|
TEMP_FAHRENHEIT,
|
||||||
)
|
)
|
||||||
from homeassistant.util.pressure import convert as convert_pressure
|
|
||||||
from homeassistant.util.distance import convert as convert_distance
|
|
||||||
from homeassistant.util.unit_system import IMPERIAL_SYSTEM, METRIC_SYSTEM
|
|
||||||
from homeassistant.util.temperature import convert as convert_temperature
|
|
||||||
from homeassistant.setup import async_setup_component
|
from homeassistant.setup import async_setup_component
|
||||||
|
from homeassistant.util.distance import convert as convert_distance
|
||||||
|
from homeassistant.util.pressure import convert as convert_pressure
|
||||||
|
from homeassistant.util.temperature import convert as convert_temperature
|
||||||
|
from homeassistant.util.unit_system import IMPERIAL_SYSTEM, METRIC_SYSTEM
|
||||||
|
|
||||||
from tests.common import load_fixture, assert_setup_component
|
from tests.common import assert_setup_component, load_fixture
|
||||||
|
|
||||||
EXP_OBS_IMP = {
|
EXP_OBS_IMP = {
|
||||||
ATTR_WEATHER_TEMPERATURE: round(
|
ATTR_WEATHER_TEMPERATURE: round(
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
"""The tests for the nx584 sensor platform."""
|
"""The tests for the nx584 sensor platform."""
|
||||||
import requests
|
|
||||||
import unittest
|
import unittest
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
|
|
||||||
from nx584 import client as nx584_client
|
from nx584 import client as nx584_client
|
||||||
|
import pytest
|
||||||
|
import requests
|
||||||
|
|
||||||
from homeassistant.components.nx584 import binary_sensor as nx584
|
from homeassistant.components.nx584 import binary_sensor as nx584
|
||||||
from homeassistant.setup import setup_component
|
from homeassistant.setup import setup_component
|
||||||
|
|
||||||
from tests.common import get_test_home_assistant
|
from tests.common import get_test_home_assistant
|
||||||
import pytest
|
|
||||||
|
|
||||||
|
|
||||||
class StopMe(Exception):
|
class StopMe(Exception):
|
||||||
|
|
Loading…
Add table
Reference in a new issue