Remove leftover issue in nVent RAYCHEM SENZ (#94105)

* Remove leftover issue senz

* strings
This commit is contained in:
G Johansson 2023-06-07 02:47:32 +02:00 committed by GitHub
parent 0d0de4aa50
commit 7d7920f483
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 25 deletions

View File

@ -16,8 +16,6 @@ from homeassistant.helpers import (
config_validation as cv, config_validation as cv,
httpx_client, 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 homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
from .api import SENZConfigEntryAuth from .api import SENZConfigEntryAuth
@ -27,29 +25,13 @@ UPDATE_INTERVAL = timedelta(seconds=30)
_LOGGER = logging.getLogger(__name__) _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] PLATFORMS = [Platform.CLIMATE]
SENZDataUpdateCoordinator = DataUpdateCoordinator[dict[str, Thermostat]] 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: async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Set up SENZ from a config entry.""" """Set up SENZ from a config entry."""
implementation = ( implementation = (

View File

@ -16,11 +16,5 @@
"create_entry": { "create_entry": {
"default": "[%key:common::config_flow::create_entry::authenticated%]" "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."
}
} }
} }