mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Sort imports according to PEP8 for verisure (#29711)
This commit is contained in:
parent
6a11e6aa72
commit
9228ed7c40
@ -1,11 +1,10 @@
|
|||||||
"""Support for Verisure devices."""
|
"""Support for Verisure devices."""
|
||||||
|
from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
import threading
|
import threading
|
||||||
from datetime import timedelta
|
|
||||||
|
|
||||||
from jsonpath import jsonpath
|
from jsonpath import jsonpath
|
||||||
import verisure
|
import verisure
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
@ -15,8 +14,8 @@ from homeassistant.const import (
|
|||||||
EVENT_HOMEASSISTANT_STOP,
|
EVENT_HOMEASSISTANT_STOP,
|
||||||
)
|
)
|
||||||
from homeassistant.helpers import discovery
|
from homeassistant.helpers import discovery
|
||||||
from homeassistant.util import Throttle
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
from homeassistant.util import Throttle
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from homeassistant.components.binary_sensor import (
|
from homeassistant.components.binary_sensor import (
|
||||||
BinarySensorDevice,
|
|
||||||
DEVICE_CLASS_CONNECTIVITY,
|
DEVICE_CLASS_CONNECTIVITY,
|
||||||
|
BinarySensorDevice,
|
||||||
)
|
)
|
||||||
|
|
||||||
from . import CONF_DOOR_WINDOW, HUB as hub
|
from . import CONF_DOOR_WINDOW, HUB as hub
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
from homeassistant.components.verisure import DOMAIN as VERISURE_DOMAIN
|
||||||
from homeassistant.const import STATE_UNAVAILABLE
|
from homeassistant.const import STATE_UNAVAILABLE
|
||||||
from homeassistant.setup import async_setup_component
|
from homeassistant.setup import async_setup_component
|
||||||
from homeassistant.components.verisure import DOMAIN as VERISURE_DOMAIN
|
|
||||||
|
|
||||||
CONFIG = {
|
CONFIG = {
|
||||||
"verisure": {
|
"verisure": {
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
"""Tests for the Verisure platform."""
|
"""Tests for the Verisure platform."""
|
||||||
|
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
from unittest.mock import patch, call
|
from unittest.mock import call, patch
|
||||||
from homeassistant.const import STATE_UNLOCKED
|
|
||||||
from homeassistant.setup import async_setup_component
|
|
||||||
from homeassistant.components.lock import (
|
from homeassistant.components.lock import (
|
||||||
DOMAIN as LOCK_DOMAIN,
|
DOMAIN as LOCK_DOMAIN,
|
||||||
SERVICE_LOCK,
|
SERVICE_LOCK,
|
||||||
SERVICE_UNLOCK,
|
SERVICE_UNLOCK,
|
||||||
)
|
)
|
||||||
from homeassistant.components.verisure import DOMAIN as VERISURE_DOMAIN
|
from homeassistant.components.verisure import DOMAIN as VERISURE_DOMAIN
|
||||||
|
from homeassistant.const import STATE_UNLOCKED
|
||||||
|
from homeassistant.setup import async_setup_component
|
||||||
|
|
||||||
NO_DEFAULT_LOCK_CODE_CONFIG = {
|
NO_DEFAULT_LOCK_CODE_CONFIG = {
|
||||||
"verisure": {
|
"verisure": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user