mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Move imports to top for mycroft (#29355)
This commit is contained in:
parent
655780447c
commit
bbf99c61fa
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user