Move imports to top for harman_kardon_avr (#27903)

pull/27912/head
Brig Lamoreaux 2019-10-18 20:58:15 -07:00 committed by Paulus Schoutsen
parent 1e727f339f
commit 37b23e9205
1 changed files with 5 additions and 6 deletions

View File

@ -1,18 +1,19 @@
"""Support for interface with an Harman/Kardon or JBL AVR."""
import logging
import hkavr
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.components.media_player import MediaPlayerDevice, PLATFORM_SCHEMA
from homeassistant.components.media_player import PLATFORM_SCHEMA, MediaPlayerDevice
from homeassistant.components.media_player.const import (
SUPPORT_SELECT_SOURCE,
SUPPORT_TURN_OFF,
SUPPORT_TURN_ON,
SUPPORT_VOLUME_MUTE,
SUPPORT_VOLUME_STEP,
SUPPORT_TURN_ON,
SUPPORT_SELECT_SOURCE,
)
from homeassistant.const import CONF_HOST, CONF_NAME, CONF_PORT, STATE_OFF, STATE_ON
import homeassistant.helpers.config_validation as cv
_LOGGER = logging.getLogger(__name__)
@ -38,8 +39,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
def setup_platform(hass, config, add_entities, discover_info=None):
"""Set up the AVR platform."""
import hkavr
name = config[CONF_NAME]
host = config[CONF_HOST]
port = config[CONF_PORT]