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."""
|
"""Support for interfacing with Russound via RNET Protocol."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from russound import russound
|
||||||
import voluptuous as vol
|
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 (
|
from homeassistant.components.media_player.const import (
|
||||||
SUPPORT_SELECT_SOURCE,
|
SUPPORT_SELECT_SOURCE,
|
||||||
SUPPORT_TURN_OFF,
|
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)
|
_LOGGER.error("Invalid config. Expected %s and %s", CONF_HOST, CONF_PORT)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
from russound import russound
|
|
||||||
|
|
||||||
russ = russound.Russound(host, port)
|
russ = russound.Russound(host, port)
|
||||||
russ.connect()
|
russ.connect()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue