From 0d0de4aa5067ba8a881ead75b131fb47c0ccfcb0 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Wed, 7 Jun 2023 02:45:07 +0200 Subject: [PATCH] Remove left-over issue Simplepush (#94103) * Remove left-over issue simplepush * strings --- homeassistant/components/simplepush/notify.py | 23 ++++--------------- .../components/simplepush/strings.json | 6 ----- 2 files changed, 4 insertions(+), 25 deletions(-) diff --git a/homeassistant/components/simplepush/notify.py b/homeassistant/components/simplepush/notify.py index 3e7fad8863f..cc6c61ced03 100644 --- a/homeassistant/components/simplepush/notify.py +++ b/homeassistant/components/simplepush/notify.py @@ -10,18 +10,13 @@ from homeassistant.components.notify import ( ATTR_DATA, ATTR_TITLE, ATTR_TITLE_DEFAULT, - PLATFORM_SCHEMA as BASE_PLATFORM_SCHEMA, BaseNotificationService, ) from homeassistant.const import CONF_EVENT, CONF_PASSWORD from homeassistant.core import HomeAssistant -from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType -from .const import ATTR_ATTACHMENTS, ATTR_EVENT, CONF_DEVICE_KEY, CONF_SALT, DOMAIN - -# Configuring Simplepush under the notify has been removed in 2022.9.0 -PLATFORM_SCHEMA = BASE_PLATFORM_SCHEMA +from .const import ATTR_ATTACHMENTS, ATTR_EVENT, CONF_DEVICE_KEY, CONF_SALT _LOGGER = logging.getLogger(__name__) @@ -32,19 +27,9 @@ async def async_get_service( discovery_info: DiscoveryInfoType | None = None, ) -> SimplePushNotificationService | None: """Get the Simplepush notification service.""" - if discovery_info is None: - async_create_issue( - hass, - DOMAIN, - "removed_yaml", - breaks_in_ha_version="2022.9.0", - is_fixable=False, - severity=IssueSeverity.WARNING, - translation_key="removed_yaml", - ) - return None - - return SimplePushNotificationService(discovery_info) + if discovery_info: + return SimplePushNotificationService(discovery_info) + return None class SimplePushNotificationService(BaseNotificationService): diff --git a/homeassistant/components/simplepush/strings.json b/homeassistant/components/simplepush/strings.json index 68ee5c7a9ed..0031dc32340 100644 --- a/homeassistant/components/simplepush/strings.json +++ b/homeassistant/components/simplepush/strings.json @@ -17,11 +17,5 @@ "abort": { "already_configured": "[%key:common::config_flow::abort::already_configured_device%]" } - }, - "issues": { - "removed_yaml": { - "title": "The Simplepush YAML configuration has been removed", - "description": "Configuring Simplepush using YAML has been removed.\n\nYour existing YAML configuration is not used by Home Assistant.\n\nRemove the Simplepush YAML configuration from your configuration.yaml file and restart Home Assistant to fix this issue." - } } }