Skip to content

Commit 2503157

Browse files
authored
Deprecate LANnouncer integration (home-assistant#151531)
1 parent 7b2b3e9 commit 2503157

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

homeassistant/components/lannouncer/notify.py

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
BaseNotificationService,
1515
)
1616
from homeassistant.const import CONF_HOST, CONF_PORT
17-
from homeassistant.core import HomeAssistant
18-
from homeassistant.helpers import config_validation as cv
17+
from homeassistant.core import HomeAssistant, callback
18+
from homeassistant.helpers import config_validation as cv, issue_registry as ir
1919
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
2020

21+
DOMAIN = "lannouncer"
22+
2123
ATTR_METHOD = "method"
2224
ATTR_METHOD_DEFAULT = "speak"
2325
ATTR_METHOD_ALLOWED = ["speak", "alarm"]
@@ -40,6 +42,22 @@ def get_service(
4042
discovery_info: DiscoveryInfoType | None = None,
4143
) -> LannouncerNotificationService:
4244
"""Get the Lannouncer notification service."""
45+
46+
@callback
47+
def _async_create_issue() -> None:
48+
"""Create issue for removed integration."""
49+
ir.async_create_issue(
50+
hass,
51+
DOMAIN,
52+
"integration_removed",
53+
is_fixable=False,
54+
breaks_in_ha_version="2026.3.0",
55+
severity=ir.IssueSeverity.WARNING,
56+
translation_key="integration_removed",
57+
)
58+
59+
hass.add_job(_async_create_issue)
60+
4361
host = config.get(CONF_HOST)
4462
port = config.get(CONF_PORT)
4563

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"issues": {
3+
"integration_removed": {
4+
"title": "LANnouncer integration is deprecated",
5+
"description": "The LANnouncer Android app is no longer available, so this integration has been deprecated and will be removed in a future release.\n\nTo resolve this issue:\n1. Remove the LANnouncer integration from your `configuration.yaml`.\n2. Restart the Home Assistant instance.\n\nAfter removal, this issue will disappear."
6+
}
7+
}
8+
}

0 commit comments

Comments
 (0)