Move imports in channels component (#27876)

This commit is contained in:
bouni 2019-10-19 01:04:10 +02:00 committed by cgtobi
parent 422885b7fd
commit 6df34a0128

View File

@ -1,9 +1,10 @@
"""Support for interfacing with an instance of getchannels.com.""" """Support for interfacing with an instance of getchannels.com."""
import logging import logging
from pychannels import Channels
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 (
DOMAIN, DOMAIN,
MEDIA_TYPE_CHANNEL, MEDIA_TYPE_CHANNEL,
@ -124,7 +125,6 @@ class ChannelsPlayer(MediaPlayerDevice):
def __init__(self, name, host, port): def __init__(self, name, host, port):
"""Initialize the Channels app.""" """Initialize the Channels app."""
from pychannels import Channels
self._name = name self._name = name
self._host = host self._host = host