From b7bdf95c41abcc732bfdfc3beeba08c068ed1392 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Sat, 29 Jul 2023 09:25:45 +0000 Subject: [PATCH] Neato yaml removal issue --- homeassistant/components/neato/__init__.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/neato/__init__.py b/homeassistant/components/neato/__init__.py index e7b402aed362e..4daa7e5b14d5d 100644 --- a/homeassistant/components/neato/__init__.py +++ b/homeassistant/components/neato/__init__.py @@ -12,9 +12,10 @@ ) from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_CLIENT_ID, CONF_CLIENT_SECRET, CONF_TOKEN, Platform -from homeassistant.core import HomeAssistant +from homeassistant.core import DOMAIN as HOMEASSISTANT_DOMAIN, HomeAssistant from homeassistant.exceptions import ConfigEntryAuthFailed, ConfigEntryNotReady from homeassistant.helpers import config_entry_oauth2_flow, config_validation as cv +from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue from homeassistant.helpers.typing import ConfigType from . import api @@ -65,6 +66,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_{NEATO_DOMAIN}", + breaks_in_ha_version="2024.2.0", + is_fixable=False, + issue_domain=NEATO_DOMAIN, + severity=IssueSeverity.WARNING, + translation_key="deprecated_yaml", + translation_placeholders={ + "domain": NEATO_DOMAIN, + "integration_title": "Neato Botvac", + }, + ) return True