From 81c0dcff63e805cec11a5e05c35da8cfb55472d2 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Thu, 27 Jul 2023 23:34:17 +0200 Subject: [PATCH] Home Connect deprecation issue yaml configuration (#97361) Home Connect deprecation issue --- .../components/home_connect/__init__.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/home_connect/__init__.py b/homeassistant/components/home_connect/__init__.py index 0fa14682f447c..7377c4b60d054 100644 --- a/homeassistant/components/home_connect/__init__.py +++ b/homeassistant/components/home_connect/__init__.py @@ -19,12 +19,13 @@ CONF_DEVICE, Platform, ) -from homeassistant.core import HomeAssistant +from homeassistant.core import DOMAIN as HOMEASSISTANT_DOMAIN, HomeAssistant from homeassistant.helpers import ( config_entry_oauth2_flow, config_validation as cv, device_registry as dr, ) +from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue from homeassistant.helpers.typing import ConfigType from homeassistant.util import Throttle @@ -133,6 +134,20 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: "automatically and can be safely removed from your " "configuration.yaml file" ) + async_create_issue( + hass, + HOMEASSISTANT_DOMAIN, + f"deprecated_yaml_{DOMAIN}", + breaks_in_ha_version="2024.2.0", + is_fixable=False, + issue_domain=DOMAIN, + severity=IssueSeverity.WARNING, + translation_key="deprecated_yaml", + translation_placeholders={ + "domain": DOMAIN, + "integration_title": "Home Connect", + }, + ) async def _async_service_program(call, method): """Execute calls to services taking a program."""