diff --git a/homeassistant/components/mycroft/__init__.py b/homeassistant/components/mycroft/__init__.py deleted file mode 100644 index e5893e57a8e6..000000000000 --- a/homeassistant/components/mycroft/__init__.py +++ /dev/null @@ -1,21 +0,0 @@ -"""Support for Mycroft AI.""" - -import voluptuous as vol - -from homeassistant.const import CONF_HOST, Platform -from homeassistant.core import HomeAssistant -from homeassistant.helpers import config_validation as cv, discovery -from homeassistant.helpers.typing import ConfigType - -DOMAIN = "mycroft" - -CONFIG_SCHEMA = vol.Schema( - {DOMAIN: vol.Schema({vol.Required(CONF_HOST): cv.string})}, extra=vol.ALLOW_EXTRA -) - - -def setup(hass: HomeAssistant, config: ConfigType) -> bool: - """Set up the Mycroft component.""" - hass.data[DOMAIN] = config[DOMAIN][CONF_HOST] - discovery.load_platform(hass, Platform.NOTIFY, DOMAIN, {}, config) - return True diff --git a/homeassistant/components/mycroft/manifest.json b/homeassistant/components/mycroft/manifest.json deleted file mode 100644 index 568bb8b17842..000000000000 --- a/homeassistant/components/mycroft/manifest.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "domain": "mycroft", - "name": "Mycroft", - "codeowners": [], - "disabled": "Dependencies not compatible with the new pip resolver", - "documentation": "https://www.home-assistant.io/integrations/mycroft", - "iot_class": "local_push", - "loggers": ["mycroftapi"], - "quality_scale": "legacy", - "requirements": ["mycroftapi==2.0"] -} diff --git a/homeassistant/components/mycroft/notify.py b/homeassistant/components/mycroft/notify.py deleted file mode 100644 index 5b2ae005fe9b..000000000000 --- a/homeassistant/components/mycroft/notify.py +++ /dev/null @@ -1,42 +0,0 @@ -"""Mycroft AI notification platform.""" - -import logging -from typing import Any, override - -from mycroftapi import MycroftAPI - -from homeassistant.components.notify import BaseNotificationService -from homeassistant.core import HomeAssistant -from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType - -from . import DOMAIN - -_LOGGER = logging.getLogger(__name__) - - -def get_service( - hass: HomeAssistant, - config: ConfigType, - discovery_info: DiscoveryInfoType | None = None, -) -> MycroftNotificationService: - """Get the Mycroft notification service.""" - return MycroftNotificationService(hass.data[DOMAIN]) - - -class MycroftNotificationService(BaseNotificationService): - """The Mycroft Notification Service.""" - - def __init__(self, mycroft_ip: str) -> None: - """Initialize the service.""" - self.mycroft_ip = mycroft_ip - - @override - def send_message(self, message: str = "", **kwargs: Any) -> None: - """Send a message mycroft to speak on instance.""" - - text = message - mycroft = MycroftAPI(self.mycroft_ip) - if mycroft is not None: - mycroft.speak_text(text) - else: - _LOGGER.warning("Could not reach this instance of mycroft") diff --git a/homeassistant/generated/integrations.json b/homeassistant/generated/integrations.json index 3a885e541789..a3b521c97bf2 100644 --- a/homeassistant/generated/integrations.json +++ b/homeassistant/generated/integrations.json @@ -4587,12 +4587,6 @@ "config_flow": false, "iot_class": "cloud_polling" }, - "mycroft": { - "name": "Mycroft", - "integration_type": "hub", - "config_flow": false, - "iot_class": "local_push" - }, "myneomitis": { "name": "MyNeomitis", "integration_type": "hub", diff --git a/script/hassfest/quality_scale.py b/script/hassfest/quality_scale.py index c0a04eea95f4..2ee2b46956c0 100644 --- a/script/hassfest/quality_scale.py +++ b/script/hassfest/quality_scale.py @@ -622,7 +622,6 @@ INTEGRATIONS_WITHOUT_QUALITY_SCALE_FILE = [ "mullvad", "mutesync", "mvglive", - "mycroft", "myq", "mysensors", "mystrom", @@ -1588,7 +1587,6 @@ INTEGRATIONS_WITHOUT_SCALE = [ "mullvad", "mutesync", "mvglive", - "mycroft", "myq", "mysensors", "mystrom",