mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +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."""
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
import threading
|
||||
from datetime import timedelta
|
||||
|
||||
from jsonpath import jsonpath
|
||||
import verisure
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.const import (
|
||||
@ -15,8 +14,8 @@ from homeassistant.const import (
|
||||
EVENT_HOMEASSISTANT_STOP,
|
||||
)
|
||||
from homeassistant.helpers import discovery
|
||||
from homeassistant.util import Throttle
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.util import Throttle
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
import logging
|
||||
|
||||
from homeassistant.components.binary_sensor import (
|
||||
BinarySensorDevice,
|
||||
DEVICE_CLASS_CONNECTIVITY,
|
||||
BinarySensorDevice,
|
||||
)
|
||||
|
||||
from . import CONF_DOOR_WINDOW, HUB as hub
|
||||
|
@ -2,9 +2,9 @@
|
||||
from contextlib import contextmanager
|
||||
from unittest.mock import patch
|
||||
|
||||
from homeassistant.components.verisure import DOMAIN as VERISURE_DOMAIN
|
||||
from homeassistant.const import STATE_UNAVAILABLE
|
||||
from homeassistant.setup import async_setup_component
|
||||
from homeassistant.components.verisure import DOMAIN as VERISURE_DOMAIN
|
||||
|
||||
CONFIG = {
|
||||
"verisure": {
|
||||
|
@ -1,16 +1,16 @@
|
||||
"""Tests for the Verisure platform."""
|
||||
|
||||
from contextlib import contextmanager
|
||||
from unittest.mock import patch, call
|
||||
from homeassistant.const import STATE_UNLOCKED
|
||||
from homeassistant.setup import async_setup_component
|
||||
from unittest.mock import call, patch
|
||||
|
||||
from homeassistant.components.lock import (
|
||||
DOMAIN as LOCK_DOMAIN,
|
||||
SERVICE_LOCK,
|
||||
SERVICE_UNLOCK,
|
||||
)
|
||||
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 = {
|
||||
"verisure": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user