Skip to content

Commit

Permalink
Home Connect deprecation issue yaml configuration (home-assistant#97361)
Browse files Browse the repository at this point in the history
Home Connect deprecation issue
  • Loading branch information
gjohansson-ST authored Jul 27, 2023
1 parent 2299430 commit 81c0dcf
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion homeassistant/components/home_connect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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."""
Expand Down

0 comments on commit 81c0dcf

Please sign in to comment.