Add deprecated_yaml issue to the homeassistant integration (#95980)

* Add deprecated_yaml issue to the homeassistant integration

* Update test

* Update homeassistant/components/homeassistant/strings.json

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Include DOMAIN in issue_id

* Update test

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
This commit is contained in:
Erik Montnemery 2023-07-10 13:06:52 +02:00 committed by GitHub
parent 96c71b214f
commit 08a5f63474
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 105 additions and 103 deletions

View file

@ -28,7 +28,7 @@ from homeassistant.const import (
UnitOfInformation,
UnitOfTemperature,
)
from homeassistant.core import HomeAssistant
from homeassistant.core import DOMAIN as HOMEASSISTANT_DOMAIN, HomeAssistant
from homeassistant.exceptions import PlatformNotReady
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import DeviceInfo
@ -235,12 +235,17 @@ async def async_setup_platform(
async_create_issue(
hass,
DOMAIN,
"deprecated_yaml",
HOMEASSISTANT_DOMAIN,
f"deprecated_yaml_{DOMAIN}",
breaks_in_ha_version="2023.12.0",
is_fixable=False,
issue_domain=DOMAIN,
severity=IssueSeverity.WARNING,
translation_key="deprecated_yaml",
translation_placeholders={
"domain": DOMAIN,
"integration_title": "QNAP",
},
)
hass.async_create_task(