Move imports to top for danfoss_air (#33625)

This commit is contained in:
Franck Nijhof 2020-04-04 15:41:33 +02:00 committed by GitHub
parent 211ed3d596
commit b112be3556
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,6 @@
"""Support for the for Danfoss Air HRV binary sensors."""
from pydanfossair.commands import ReadCommand
from homeassistant.components.binary_sensor import BinarySensorDevice
from . import DOMAIN as DANFOSS_AIR_DOMAIN
@ -6,8 +8,6 @@ from . import DOMAIN as DANFOSS_AIR_DOMAIN
def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up the available Danfoss Air sensors etc."""
from pydanfossair.commands import ReadCommand
data = hass.data[DANFOSS_AIR_DOMAIN]
sensors = [

View file

@ -1,6 +1,8 @@
"""Support for the for Danfoss Air HRV sensors."""
import logging
from pydanfossair.commands import ReadCommand
from homeassistant.const import (
DEVICE_CLASS_BATTERY,
DEVICE_CLASS_HUMIDITY,
@ -17,8 +19,6 @@ _LOGGER = logging.getLogger(__name__)
def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up the available Danfoss Air sensors etc."""
from pydanfossair.commands import ReadCommand
data = hass.data[DANFOSS_AIR_DOMAIN]
sensors = [

View file

@ -1,6 +1,8 @@
"""Support for the for Danfoss Air HRV sswitches."""
import logging
from pydanfossair.commands import ReadCommand, UpdateCommand
from homeassistant.components.switch import SwitchDevice
from . import DOMAIN as DANFOSS_AIR_DOMAIN
@ -10,8 +12,6 @@ _LOGGER = logging.getLogger(__name__)
def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up the Danfoss Air HRV switch platform."""
from pydanfossair.commands import ReadCommand, UpdateCommand
data = hass.data[DANFOSS_AIR_DOMAIN]
switches = [