From 7d7920f4830e1d8d116d3bdd5b5a5d05a072d35b Mon Sep 17 00:00:00 2001 From: G Johansson Date: Wed, 7 Jun 2023 02:47:32 +0200 Subject: [PATCH] Remove leftover issue in nVent RAYCHEM SENZ (#94105) * Remove leftover issue senz * strings --- homeassistant/components/senz/__init__.py | 20 +------------------- homeassistant/components/senz/strings.json | 6 ------ 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/homeassistant/components/senz/__init__.py b/homeassistant/components/senz/__init__.py index e6ded8e0355..559760ec52d 100644 --- a/homeassistant/components/senz/__init__.py +++ b/homeassistant/components/senz/__init__.py @@ -16,8 +16,6 @@ from homeassistant.helpers import ( config_validation as cv, httpx_client, ) -from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue -from homeassistant.helpers.typing import ConfigType from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed from .api import SENZConfigEntryAuth @@ -27,29 +25,13 @@ UPDATE_INTERVAL = timedelta(seconds=30) _LOGGER = logging.getLogger(__name__) -CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) +CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN) PLATFORMS = [Platform.CLIMATE] SENZDataUpdateCoordinator = DataUpdateCoordinator[dict[str, Thermostat]] -async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: - """Set up the SENZ integration.""" - if DOMAIN in config: - async_create_issue( - hass, - DOMAIN, - "removed_yaml", - breaks_in_ha_version="2022.8.0", - is_fixable=False, - severity=IssueSeverity.WARNING, - translation_key="removed_yaml", - ) - - return True - - async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Set up SENZ from a config entry.""" implementation = ( diff --git a/homeassistant/components/senz/strings.json b/homeassistant/components/senz/strings.json index 74ca9f5e3bf..316f7234f9b 100644 --- a/homeassistant/components/senz/strings.json +++ b/homeassistant/components/senz/strings.json @@ -16,11 +16,5 @@ "create_entry": { "default": "[%key:common::config_flow::create_entry::authenticated%]" } - }, - "issues": { - "removed_yaml": { - "title": "The nVent RAYCHEM SENZ YAML configuration has been removed", - "description": "Configuring nVent RAYCHEM SENZ using YAML has been removed.\n\nYour existing YAML configuration is not used by Home Assistant.\n\nRemove the YAML configuration from your configuration.yaml file and restart Home Assistant to fix this issue." - } } }