Skip to content

Commit

Permalink
Merge pull request #3264 from music-assistant/fix-issue
Browse files Browse the repository at this point in the history
Add issue deletion to fix my silly mistake
  • Loading branch information
jozefKruszynski authored Dec 7, 2024
2 parents d2fc8a9 + f704588 commit b7d4e01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion custom_components/mass/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]

Expand Down

0 comments on commit b7d4e01

Please sign in to comment.