mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Move imports to top for dunehd (#29444)
This commit is contained in:
parent
f2a08c438b
commit
50ee0c6727
@ -1,7 +1,8 @@
|
|||||||
"""DuneHD implementation of the media player."""
|
"""DuneHD implementation of the media player."""
|
||||||
|
from pdunehd import DuneHDPlayer
|
||||||
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_NEXT_TRACK,
|
SUPPORT_NEXT_TRACK,
|
||||||
SUPPORT_PAUSE,
|
SUPPORT_PAUSE,
|
||||||
@ -46,7 +47,6 @@ DUNEHD_PLAYER_SUPPORT = (
|
|||||||
|
|
||||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||||
"""Set up the DuneHD media player platform."""
|
"""Set up the DuneHD media player platform."""
|
||||||
from pdunehd import DuneHDPlayer
|
|
||||||
|
|
||||||
sources = config.get(CONF_SOURCES, {})
|
sources = config.get(CONF_SOURCES, {})
|
||||||
host = config.get(CONF_HOST)
|
host = config.get(CONF_HOST)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user