mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Move imports to top for emby (#29453)
This commit is contained in:
parent
ebc9d17558
commit
06a156c091
@ -1,9 +1,10 @@
|
|||||||
"""Support to interface with the Emby API."""
|
"""Support to interface with the Emby API."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from pyemby import EmbyServer
|
||||||
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 (
|
||||||
MEDIA_TYPE_CHANNEL,
|
MEDIA_TYPE_CHANNEL,
|
||||||
MEDIA_TYPE_MOVIE,
|
MEDIA_TYPE_MOVIE,
|
||||||
@ -70,7 +71,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 the Emby platform."""
|
"""Set up the Emby platform."""
|
||||||
from pyemby import EmbyServer
|
|
||||||
|
|
||||||
host = config.get(CONF_HOST)
|
host = config.get(CONF_HOST)
|
||||||
key = config.get(CONF_API_KEY)
|
key = config.get(CONF_API_KEY)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user