mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Move imports to top for emulated_hue (#29488)
This commit is contained in:
parent
f5550509d4
commit
8647ba3dd5
@ -1,6 +1,8 @@
|
|||||||
"""Bridge between emulated_roku and Home Assistant."""
|
"""Bridge between emulated_roku and Home Assistant."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from emulated_roku import EmulatedRokuCommandHandler, EmulatedRokuServer
|
||||||
|
|
||||||
from homeassistant.const import EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP
|
from homeassistant.const import EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP
|
||||||
from homeassistant.core import CoreState, EventOrigin
|
from homeassistant.core import CoreState, EventOrigin
|
||||||
|
|
||||||
@ -51,7 +53,6 @@ class EmulatedRoku:
|
|||||||
|
|
||||||
async def setup(self):
|
async def setup(self):
|
||||||
"""Start the emulated_roku server."""
|
"""Start the emulated_roku server."""
|
||||||
from emulated_roku import EmulatedRokuServer, EmulatedRokuCommandHandler
|
|
||||||
|
|
||||||
class EventCommandHandler(EmulatedRokuCommandHandler):
|
class EventCommandHandler(EmulatedRokuCommandHandler):
|
||||||
"""emulated_roku command handler to turn commands into events."""
|
"""emulated_roku command handler to turn commands into events."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user