Move imports to top for mycroft (#29355)

This commit is contained in:
springstan 2019-12-04 00:42:21 +01:00 committed by Paulus Schoutsen
parent 655780447c
commit bbf99c61fa

View File

@ -1,8 +1,9 @@
"""Mycroft AI notification platform.""" """Mycroft AI notification platform."""
import logging import logging
from homeassistant.components.notify import BaseNotificationService from mycroftapi import MycroftAPI
from homeassistant.components.notify import BaseNotificationService
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
@ -21,7 +22,6 @@ class MycroftNotificationService(BaseNotificationService):
def send_message(self, message="", **kwargs): def send_message(self, message="", **kwargs):
"""Send a message mycroft to speak on instance.""" """Send a message mycroft to speak on instance."""
from mycroftapi import MycroftAPI
text = message text = message
mycroft = MycroftAPI(self.mycroft_ip) mycroft = MycroftAPI(self.mycroft_ip)