move imports in smarthab component (#27942)
This commit is contained in:
parent
ed46834a30
commit
c42ca94a86
3 changed files with 16 additions and 12 deletions
|
@ -4,18 +4,21 @@ Support for SmartHab device integration.
|
|||
For more details about this component, please refer to the documentation at
|
||||
https://home-assistant.io/integrations/smarthab/
|
||||
"""
|
||||
import logging
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
|
||||
import pysmarthab
|
||||
from requests.exceptions import Timeout
|
||||
|
||||
from homeassistant.components.cover import (
|
||||
CoverDevice,
|
||||
SUPPORT_OPEN,
|
||||
SUPPORT_CLOSE,
|
||||
SUPPORT_SET_POSITION,
|
||||
ATTR_POSITION,
|
||||
SUPPORT_CLOSE,
|
||||
SUPPORT_OPEN,
|
||||
SUPPORT_SET_POSITION,
|
||||
CoverDevice,
|
||||
)
|
||||
from . import DOMAIN, DATA_HUB
|
||||
|
||||
from . import DATA_HUB, DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
@ -24,7 +27,6 @@ SCAN_INTERVAL = timedelta(seconds=60)
|
|||
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""Set up the SmartHab roller shutters platform."""
|
||||
import pysmarthab
|
||||
|
||||
hub = hass.data[DOMAIN][DATA_HUB]
|
||||
devices = hub.get_device_list()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue