Home Connect deprecation issue yaml configuration (#97361)

Home Connect deprecation issue
This commit is contained in:
G Johansson 2023-07-27 23:34:17 +02:00 committed by GitHub
parent 2299430dbe
commit 81c0dcff63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,12 +19,13 @@ from homeassistant.const import (
CONF_DEVICE, CONF_DEVICE,
Platform, Platform,
) )
from homeassistant.core import HomeAssistant from homeassistant.core import DOMAIN as HOMEASSISTANT_DOMAIN, HomeAssistant
from homeassistant.helpers import ( from homeassistant.helpers import (
config_entry_oauth2_flow, config_entry_oauth2_flow,
config_validation as cv, config_validation as cv,
device_registry as dr, device_registry as dr,
) )
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
from homeassistant.helpers.typing import ConfigType from homeassistant.helpers.typing import ConfigType
from homeassistant.util import Throttle 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 " "automatically and can be safely removed from your "
"configuration.yaml file" "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): async def _async_service_program(call, method):
"""Execute calls to services taking a program.""" """Execute calls to services taking a program."""