mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Move imports to top for danfoss_air (#33625)
This commit is contained in:
parent
211ed3d596
commit
b112be3556
@ -1,4 +1,6 @@
|
|||||||
"""Support for the for Danfoss Air HRV binary sensors."""
|
"""Support for the for Danfoss Air HRV binary sensors."""
|
||||||
|
from pydanfossair.commands import ReadCommand
|
||||||
|
|
||||||
from homeassistant.components.binary_sensor import BinarySensorDevice
|
from homeassistant.components.binary_sensor import BinarySensorDevice
|
||||||
|
|
||||||
from . import DOMAIN as DANFOSS_AIR_DOMAIN
|
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):
|
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||||
"""Set up the available Danfoss Air sensors etc."""
|
"""Set up the available Danfoss Air sensors etc."""
|
||||||
from pydanfossair.commands import ReadCommand
|
|
||||||
|
|
||||||
data = hass.data[DANFOSS_AIR_DOMAIN]
|
data = hass.data[DANFOSS_AIR_DOMAIN]
|
||||||
|
|
||||||
sensors = [
|
sensors = [
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
"""Support for the for Danfoss Air HRV sensors."""
|
"""Support for the for Danfoss Air HRV sensors."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from pydanfossair.commands import ReadCommand
|
||||||
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
DEVICE_CLASS_BATTERY,
|
DEVICE_CLASS_BATTERY,
|
||||||
DEVICE_CLASS_HUMIDITY,
|
DEVICE_CLASS_HUMIDITY,
|
||||||
@ -17,8 +19,6 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
|
|
||||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||||
"""Set up the available Danfoss Air sensors etc."""
|
"""Set up the available Danfoss Air sensors etc."""
|
||||||
from pydanfossair.commands import ReadCommand
|
|
||||||
|
|
||||||
data = hass.data[DANFOSS_AIR_DOMAIN]
|
data = hass.data[DANFOSS_AIR_DOMAIN]
|
||||||
|
|
||||||
sensors = [
|
sensors = [
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
"""Support for the for Danfoss Air HRV sswitches."""
|
"""Support for the for Danfoss Air HRV sswitches."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from pydanfossair.commands import ReadCommand, UpdateCommand
|
||||||
|
|
||||||
from homeassistant.components.switch import SwitchDevice
|
from homeassistant.components.switch import SwitchDevice
|
||||||
|
|
||||||
from . import DOMAIN as DANFOSS_AIR_DOMAIN
|
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):
|
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||||
"""Set up the Danfoss Air HRV switch platform."""
|
"""Set up the Danfoss Air HRV switch platform."""
|
||||||
from pydanfossair.commands import ReadCommand, UpdateCommand
|
|
||||||
|
|
||||||
data = hass.data[DANFOSS_AIR_DOMAIN]
|
data = hass.data[DANFOSS_AIR_DOMAIN]
|
||||||
|
|
||||||
switches = [
|
switches = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user