mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Move imports to top for eight_sleep (#29447)
This commit is contained in:
parent
85e188db52
commit
b2cce05405
@ -1,23 +1,24 @@
|
|||||||
"""Support for Eight smart mattress covers and mattresses."""
|
"""Support for Eight smart mattress covers and mattresses."""
|
||||||
import logging
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
import logging
|
||||||
|
|
||||||
|
from pyeight.eight import EightSleep
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.core import callback
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
CONF_USERNAME,
|
ATTR_ENTITY_ID,
|
||||||
|
CONF_BINARY_SENSORS,
|
||||||
CONF_PASSWORD,
|
CONF_PASSWORD,
|
||||||
CONF_SENSORS,
|
CONF_SENSORS,
|
||||||
CONF_BINARY_SENSORS,
|
CONF_USERNAME,
|
||||||
ATTR_ENTITY_ID,
|
|
||||||
EVENT_HOMEASSISTANT_STOP,
|
EVENT_HOMEASSISTANT_STOP,
|
||||||
)
|
)
|
||||||
|
from homeassistant.core import callback
|
||||||
from homeassistant.helpers import discovery
|
from homeassistant.helpers import discovery
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.dispatcher import (
|
from homeassistant.helpers.dispatcher import (
|
||||||
async_dispatcher_send,
|
|
||||||
async_dispatcher_connect,
|
async_dispatcher_connect,
|
||||||
|
async_dispatcher_send,
|
||||||
)
|
)
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
from homeassistant.helpers.event import async_track_point_in_utc_time
|
from homeassistant.helpers.event import async_track_point_in_utc_time
|
||||||
@ -90,7 +91,6 @@ CONFIG_SCHEMA = vol.Schema(
|
|||||||
|
|
||||||
async def async_setup(hass, config):
|
async def async_setup(hass, config):
|
||||||
"""Set up the Eight Sleep component."""
|
"""Set up the Eight Sleep component."""
|
||||||
from pyeight.eight import EightSleep
|
|
||||||
|
|
||||||
conf = config.get(DOMAIN)
|
conf = config.get(DOMAIN)
|
||||||
user = conf.get(CONF_USERNAME)
|
user = conf.get(CONF_USERNAME)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user