Skip to content
Snippets Groups Projects
Unverified Commit d08bb96d authored by Jan Bouwhuis's avatar Jan Bouwhuis Committed by GitHub
Browse files

Deprecate Unify Circuit integration (#115528)

parent b5bd25d4
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
{
"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."
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment