Deprecate Unify Circuit integration (#115528)

Co-authored-by: TheJulianJES <TheJulianJES@users.noreply.github.com>
This commit is contained in:
Jan Bouwhuis 2024-04-23 21:59:03 +02:00 committed by GitHub
parent b5bd25d4fb
commit d08bb96d00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 20 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import voluptuous as vol
from homeassistant.const import CONF_NAME, CONF_URL, Platform
from homeassistant.core import HomeAssistant
from homeassistant.helpers import config_validation as cv, discovery
import homeassistant.helpers.issue_registry as ir
from homeassistant.helpers.typing import ConfigType
DOMAIN = "circuit"
@ -26,6 +27,17 @@ CONFIG_SCHEMA = vol.Schema(
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Set up the Unify Circuit component."""
ir.async_create_issue(
hass,
DOMAIN,
"service_removal",
breaks_in_ha_version="2024.7.0",
is_fixable=False,
is_persistent=True,
severity=ir.IssueSeverity.WARNING,
translation_key="service_removal",
translation_placeholders={"integration": "Unify Circuit", "domain": DOMAIN},
)
webhooks = config[DOMAIN][CONF_WEBHOOK]
for webhook_conf in webhooks:

View File

@ -0,0 +1,8 @@
{
"issues": {
"service_removal": {
"title": "The {integration} integration is being removed",
"description": "The {integration} integration will be removed, as the service is no longer maintained.\n\n\n\nRemove the `{domain}` configuration from your configuration.yaml file and restart Home Assistant to fix this issue."
}
}
}