From 8647ba3dd573c59e491dd92e6d791eede257f042 Mon Sep 17 00:00:00 2001 From: springstan <46536646+springstan@users.noreply.github.com> Date: Thu, 5 Dec 2019 06:16:51 +0100 Subject: [PATCH] Move imports to top for emulated_hue (#29488) --- homeassistant/components/emulated_roku/binding.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/emulated_roku/binding.py b/homeassistant/components/emulated_roku/binding.py index 4c98af69848..a44effff55a 100644 --- a/homeassistant/components/emulated_roku/binding.py +++ b/homeassistant/components/emulated_roku/binding.py @@ -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."""