Move imports to top for openhome (#29369)

pull/29381/head
springstan 2019-12-04 00:47:22 +01:00 committed by Paulus Schoutsen
parent 3205afe74e
commit 0416e5b0fc
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,8 @@
"""Support for Openhome Devices."""
import logging
from openhomedevice.Device import Device
from homeassistant.components.media_player import MediaPlayerDevice
from homeassistant.components.media_player.const import (
SUPPORT_NEXT_TRACK,
@ -26,7 +28,6 @@ DEVICES = []
def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up the Openhome platform."""
from openhomedevice.Device import Device
if not discovery_info:
return True