Move imports to top for emulated_hue (#29488)

This commit is contained in:
springstan authored and Paulus Schoutsen committed 2019-12-04 21:16:51 -08:00
1 parent f5550509d4
commit 8647ba3dd5
1 file changed
+2 -1
@@ -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."""