diff --git a/homeassistant/components/mycroft/notify.py b/homeassistant/components/mycroft/notify.py index 93b724f97cda5..335eff875461f 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 @@ def __init__(self, mycroft_ip): 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)