mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
moved imports to top level (#27468)
This commit is contained in:
parent
08ccaac21f
commit
88e54a4ce6
@ -1,6 +1,8 @@
|
|||||||
"""Support for Anthem Network Receivers and Processors."""
|
"""Support for Anthem Network Receivers and Processors."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
import anthemav
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.media_player import MediaPlayerDevice, PLATFORM_SCHEMA
|
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):
|
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
|
||||||
"""Set up our socket to the AVR."""
|
"""Set up our socket to the AVR."""
|
||||||
import anthemav
|
|
||||||
|
|
||||||
host = config.get(CONF_HOST)
|
host = config.get(CONF_HOST)
|
||||||
port = config.get(CONF_PORT)
|
port = config.get(CONF_PORT)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user