From 88e54a4ce6095bf4ca78f64bdc2ce63b1d9bca03 Mon Sep 17 00:00:00 2001 From: bouni Date: Sat, 12 Oct 2019 22:04:35 +0200 Subject: [PATCH] moved imports to top level (#27468) --- homeassistant/components/anthemav/media_player.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/anthemav/media_player.py b/homeassistant/components/anthemav/media_player.py index a033470e5c9..d472af6104e 100644 --- a/homeassistant/components/anthemav/media_player.py +++ b/homeassistant/components/anthemav/media_player.py @@ -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)