From bbf99c61fa8f58f6878611081252e76ee745c9a0 Mon Sep 17 00:00:00 2001 From: springstan <46536646+springstan@users.noreply.github.com> Date: Wed, 4 Dec 2019 00:42:21 +0100 Subject: [PATCH] Move imports to top for mycroft (#29355) --- homeassistant/components/mycroft/notify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/mycroft/notify.py b/homeassistant/components/mycroft/notify.py index 93b724f97cd..335eff87546 100644 --- a/homeassistant/components/mycroft/notify.py +++ b/homeassistant/components/mycroft/notify.py @@ -1,8 +1,9 @@ """Mycroft AI notification platform.""" import logging -from homeassistant.components.notify import BaseNotificationService +from mycroftapi import MycroftAPI +from homeassistant.components.notify import BaseNotificationService _LOGGER = logging.getLogger(__name__) @@ -21,7 +22,6 @@ class MycroftNotificationService(BaseNotificationService): def send_message(self, message="", **kwargs): """Send a message mycroft to speak on instance.""" - from mycroftapi import MycroftAPI text = message mycroft = MycroftAPI(self.mycroft_ip)