diff --git a/custom_components/mass/__init__.py b/custom_components/mass/__init__.py index 66a8350f..d906c56c 100644 --- a/custom_components/mass/__init__.py +++ b/custom_components/mass/__init__.py @@ -12,6 +12,7 @@ from homeassistant.exceptions import ConfigEntryNotReady from homeassistant.helpers import config_validation as cv from homeassistant.helpers import device_registry as dr +from homeassistant.helpers import issue_registry as ir from homeassistant.helpers.aiohttp_client import async_get_clientsession from homeassistant.helpers.issue_registry import ( IssueSeverity, @@ -68,7 +69,7 @@ async def async_setup_entry( f"move_integration_to_ha_core{DOMAIN}", breaks_in_ha_version="2024.12.0", is_fixable=False, - is_persistent=True, + is_persistent=False, learn_more_url="https://music-assistant.io/integration/installation/#migrating-from-the-hacs-integration-to-the-ha-integration", issue_domain=DOMAIN, severity=IssueSeverity.WARNING, @@ -187,6 +188,7 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: mass_entry_data: MusicAssistantEntryData = entry.runtime_data mass_entry_data.listen_task.cancel() await mass_entry_data.mass.disconnect() + ir.async_delete_issue(hass, DOMAIN, f"move_integration_to_ha_core{DOMAIN}") return unload_ok diff --git a/pyproject.toml b/pyproject.toml index 44b5322f..58b31b25 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ test = [ "pylint==3.3.2", "ruff==0.8.1", "tomli==2.2.1", - "pytest-homeassistant-custom-component==0.13.187", + "pytest-homeassistant-custom-component==0.13.190", "zeroconf", ]