Skip to content

Commit 9760eb7

Browse files
wollewjoostlek
andauthored
Deprecate velux reboot action (home-assistant#155549)
Co-authored-by: Joost Lekkerkerker <[email protected]>
1 parent 7851bed commit 9760eb7

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

homeassistant/components/velux/__init__.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from homeassistant.config_entries import ConfigEntry
88
from homeassistant.const import CONF_HOST, CONF_PASSWORD, EVENT_HOMEASSISTANT_STOP
99
from homeassistant.core import HomeAssistant, ServiceCall
10-
from homeassistant.helpers import device_registry as dr
10+
from homeassistant.helpers import device_registry as dr, issue_registry as ir
1111

1212
from .const import DOMAIN, LOGGER, PLATFORMS
1313

@@ -51,6 +51,18 @@ async def on_hass_stop(event):
5151
await pyvlx.disconnect()
5252

5353
async def async_reboot_gateway(service_call: ServiceCall) -> None:
54+
"""Reboot the gateway (deprecated - use button entity instead)."""
55+
ir.async_create_issue(
56+
hass,
57+
DOMAIN,
58+
"deprecated_reboot_service",
59+
is_fixable=False,
60+
issue_domain=DOMAIN,
61+
severity=ir.IssueSeverity.WARNING,
62+
translation_key="deprecated_reboot_service",
63+
breaks_in_ha_version="2026.6.0",
64+
)
65+
5466
await pyvlx.reboot_gateway()
5567

5668
entry.async_on_unload(

homeassistant/components/velux/strings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@
4141
"message": "Failed to reboot gateway. Try again in a few moments or power cycle the device manually"
4242
}
4343
},
44+
"issues": {
45+
"deprecated_reboot_service": {
46+
"description": "The `velux.reboot_gateway` service is deprecated and will be removed in Home Assistant 2026.6.0. Please use the 'Restart' button entity instead. You can find this button in the device page for your KLF 200 Gateway or by searching for 'restart' in your entity list.",
47+
"title": "Velux reboot service is deprecated"
48+
}
49+
},
4450
"services": {
4551
"reboot_gateway": {
4652
"description": "Reboots the KLF200 Gateway",

0 commit comments

Comments
 (0)