Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deletion of repairs/issues #309

Merged
merged 1 commit into from
May 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions custom_components/proxmoxve/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from homeassistant.helpers.issue_registry import (
IssueSeverity,
async_create_issue,
delete_issue,
async_delete_issue,
)
from homeassistant.helpers.typing import ConfigType

Expand Down Expand Up @@ -348,7 +348,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
node_proxmox["node"]
for node_proxmox in (nodes_api if nodes_api is not None else [])
]:
delete_issue(
async_delete_issue(
hass,
DOMAIN,
f"{config_entry.entry_id}_{node}_resource_nonexistent",
Expand Down Expand Up @@ -418,7 +418,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
(int(resource["vmid"]) if "vmid" in resource else None)
for resource in (resources if resources is not None else [])
]:
delete_issue(
async_delete_issue(
hass,
DOMAIN,
f"{config_entry.entry_id}_{vm_id}_resource_nonexistent",
Expand Down Expand Up @@ -455,7 +455,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
(int(resource["vmid"]) if "vmid" in resource else None)
for resource in (resources if resources is not None else [])
]:
delete_issue(
async_delete_issue(
hass,
DOMAIN,
f"{config_entry.entry_id}_{container_id}_resource_nonexistent",
Expand Down Expand Up @@ -492,7 +492,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
(resource.get("storage", None))
for resource in (resources if resources is not None else [])
]:
delete_issue(
async_delete_issue(
hass,
DOMAIN,
f"{config_entry.entry_id}_{storage_id}_resource_nonexistent",
Expand Down
Loading