From fda831e17b9ae0ada20635956aa1d7dbc7a1afee Mon Sep 17 00:00:00 2001 From: Aaron Bach Date: Thu, 29 Sep 2022 12:24:52 -0500 Subject: [PATCH] Don't create Repairs issue on Guardian entity replacement (#79311) --- .../components/guardian/strings.json | 11 ---------- .../components/guardian/translations/en.json | 11 ---------- homeassistant/components/guardian/util.py | 20 +------------------ 3 files changed, 1 insertion(+), 41 deletions(-) diff --git a/homeassistant/components/guardian/strings.json b/homeassistant/components/guardian/strings.json index 33ddcf637a4..683f13c8d36 100644 --- a/homeassistant/components/guardian/strings.json +++ b/homeassistant/components/guardian/strings.json @@ -29,17 +29,6 @@ } } } - }, - "replaced_old_entity": { - "title": "The {old_entity_id} entity will be removed", - "fix_flow": { - "step": { - "confirm": { - "title": "The {old_entity_id} entity will be removed", - "description": "Update any automations or scripts that use this entity to instead use `{replacement_entity_id}`." - } - } - } } } } diff --git a/homeassistant/components/guardian/translations/en.json b/homeassistant/components/guardian/translations/en.json index ac87ae36506..1aaf8b888c8 100644 --- a/homeassistant/components/guardian/translations/en.json +++ b/homeassistant/components/guardian/translations/en.json @@ -29,17 +29,6 @@ } }, "title": "The {deprecated_service} service will be removed" - }, - "replaced_old_entity": { - "fix_flow": { - "step": { - "confirm": { - "description": "Update any automations or scripts that use this entity to instead use `{replacement_entity_id}`.", - "title": "The {old_entity_id} entity will be removed" - } - } - }, - "title": "The {old_entity_id} entity will be removed" } } } \ No newline at end of file diff --git a/homeassistant/components/guardian/util.py b/homeassistant/components/guardian/util.py index 9966435e7b0..250fee58db5 100644 --- a/homeassistant/components/guardian/util.py +++ b/homeassistant/components/guardian/util.py @@ -14,10 +14,9 @@ from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback from homeassistant.helpers import entity_registry from homeassistant.helpers.dispatcher import async_dispatcher_connect -from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed -from .const import DOMAIN, LOGGER +from .const import LOGGER DEFAULT_UPDATE_INTERVAL = timedelta(seconds=30) @@ -56,23 +55,6 @@ def async_finish_entity_domain_replacements( continue old_entity_id = registry_entry.entity_id - translation_key = "replaced_old_entity" - - async_create_issue( - hass, - DOMAIN, - f"{translation_key}_{old_entity_id}", - breaks_in_ha_version=strategy.breaks_in_ha_version, - is_fixable=True, - is_persistent=True, - severity=IssueSeverity.WARNING, - translation_key=translation_key, - translation_placeholders={ - "old_entity_id": old_entity_id, - "replacement_entity_id": strategy.replacement_entity_id, - }, - ) - if strategy.remove_old_entity: LOGGER.info('Removing old entity: "%s"', old_entity_id) ent_reg.async_remove(old_entity_id)