1
mirror of https://github.com/home-assistant/core synced 2024-10-07 10:13:38 +02:00

Move imports to top for emby (#29453)

This commit is contained in:
springstan 2019-12-05 06:19:43 +01:00 committed by Paulus Schoutsen
parent ebc9d17558
commit 06a156c091

View File

@ -1,9 +1,10 @@
"""Support to interface with the Emby API."""
import logging
from pyemby import EmbyServer
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 (
MEDIA_TYPE_CHANNEL,
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):
"""Set up the Emby platform."""
from pyemby import EmbyServer
host = config.get(CONF_HOST)
key = config.get(CONF_API_KEY)