Move imports to top for russound_rnet (#29268)
This commit is contained in:
parent
82d8c9c2ca
commit
db2f53dfc1
1 changed files with 2 additions and 3 deletions
|
@ -1,9 +1,10 @@
|
|||
"""Support for interfacing with Russound via RNET Protocol."""
|
||||
import logging
|
||||
|
||||
from russound import russound
|
||||
import voluptuous as vol
|
||||
|
||||
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,
|
||||
|
@ -51,8 +52,6 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
|||
_LOGGER.error("Invalid config. Expected %s and %s", CONF_HOST, CONF_PORT)
|
||||
return False
|
||||
|
||||
from russound import russound
|
||||
|
||||
russ = russound.Russound(host, port)
|
||||
russ.connect()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue