Move imports to top for danfoss_air (#33625)
This commit is contained in:
parent
211ed3d596
commit
b112be3556
3 changed files with 6 additions and 6 deletions
|
@ -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 = [
|
||||
|
|
|
@ -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 = [
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Reference in a new issue