moved imports to top level (#27468)

This commit is contained in:
bouni 2019-10-12 22:04:35 +02:00 committed by Paulus Schoutsen
parent 08ccaac21f
commit 88e54a4ce6

View file

@ -1,6 +1,8 @@
"""Support for Anthem Network Receivers and Processors."""
import logging
import anthemav
import voluptuous as vol
from homeassistant.components.media_player import MediaPlayerDevice, PLATFORM_SCHEMA
@ -46,7 +48,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
"""Set up our socket to the AVR."""
import anthemav
host = config.get(CONF_HOST)
port = config.get(CONF_PORT)