Skip to content

Commit

Permalink
Merge pull request #309 from dougiteixeira/Fix-deletion-of-repairs/is…
Browse files Browse the repository at this point in the history
…sues

Fix deletion of repairs/issues
  • Loading branch information
dougiteixeira authored May 19, 2024
2 parents fd2e653 + 03a55a8 commit ac94fa9
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit ac94fa9

Please sign in to comment.