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:
parent
96c71b214f
commit
08a5f63474
25 changed files with 105 additions and 103 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue