Skip to content

Commit

Permalink
Move imports to top for danfoss_air (#33625)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Apr 4, 2020
1 parent 211ed3d commit b112be3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/danfoss_air/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"""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


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 = [
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/danfoss_air/sensor.py
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -17,8 +19,6 @@

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 = [
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/danfoss_air/switch.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -10,8 +12,6 @@

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 = [
Expand Down

0 comments on commit b112be3

Please sign in to comment.