mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 02:37:50 +00:00
Deprecate Unify Circuit integration (#115528)
Co-authored-by: TheJulianJES <TheJulianJES@users.noreply.github.com>
This commit is contained in:
parent
b5bd25d4fb
commit
d08bb96d00
@ -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:
|
||||
|
8
homeassistant/components/circuit/strings.json
Normal file
8
homeassistant/components/circuit/strings.json
Normal 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."
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user