Move imports to top for homematic (#29558)

This commit is contained in:
springstan 2019-12-06 17:46:24 +01:00 committed by cgtobi
parent b8434fdcfd
commit c9415ab75d

View file

@ -1,8 +1,9 @@
"""Support for HomeMatic devices."""
from datetime import timedelta, datetime
from datetime import datetime, timedelta
from functools import partial
import logging
from pyhomematic import HMConnection
import voluptuous as vol
from homeassistant.const import (
@ -366,7 +367,6 @@ SCHEMA_SERVICE_PUT_PARAMSET = vol.Schema(
def setup(hass, config):
"""Set up the Homematic component."""
from pyhomematic import HMConnection
conf = config[DOMAIN]
hass.data[DATA_CONF] = remotes = {}