mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +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."""
|
"""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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user