Move imports to top for emulated_hue (#29488)

This commit is contained in:
springstan 2019-12-05 06:16:51 +01:00 committed by Paulus Schoutsen
parent f5550509d4
commit 8647ba3dd5

View File

@ -1,6 +1,8 @@
"""Bridge between emulated_roku and Home Assistant."""
import logging
from emulated_roku import EmulatedRokuCommandHandler, EmulatedRokuServer
from homeassistant.const import EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP
from homeassistant.core import CoreState, EventOrigin
@ -51,7 +53,6 @@ class EmulatedRoku:
async def setup(self):
"""Start the emulated_roku server."""
from emulated_roku import EmulatedRokuServer, EmulatedRokuCommandHandler
class EventCommandHandler(EmulatedRokuCommandHandler):
"""emulated_roku command handler to turn commands into events."""