1 """Mycroft AI notification platform."""
3 from __future__
import annotations
7 from mycroftapi
import MycroftAPI
13 _LOGGER = logging.getLogger(__name__)
19 discovery_info: DiscoveryInfoType |
None =
None,
20 ) -> MycroftNotificationService:
21 """Get the Mycroft notification service."""
26 """The Mycroft Notification Service."""
29 """Initialize the service."""
33 """Send a message mycroft to speak on instance."""
36 mycroft = MycroftAPI(self.
mycroft_ipmycroft_ip)
37 if mycroft
is not None:
38 mycroft.speak_text(text)
40 _LOGGER.log(
"Could not reach this instance of mycroft")
def __init__(self, mycroft_ip)
def send_message(self, message="", **kwargs)
MycroftNotificationService get_service(HomeAssistant hass, ConfigType config, DiscoveryInfoType|None discovery_info=None)