mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-16 21:56:29 +00:00
Fix ingress on panel after restore (#1508)
* Fix ingress on panel after restore * Supress errors
This commit is contained in:
parent
9e5c276e3b
commit
e24987a610
@ -272,11 +272,14 @@ class AddonManager(CoreSysAttributes):
|
|||||||
await addon.restore(tar_file)
|
await addon.restore(tar_file)
|
||||||
|
|
||||||
# Check if new
|
# Check if new
|
||||||
if slug in self.local:
|
if slug not in self.local:
|
||||||
return
|
_LOGGER.info("Detect new Add-on after restore %s", slug)
|
||||||
|
self.local[slug] = addon
|
||||||
|
|
||||||
_LOGGER.info("Detect new Add-on after restore %s", slug)
|
# Update ingress
|
||||||
self.local[slug] = addon
|
if addon.with_ingress:
|
||||||
|
with suppress(HomeAssistantAPIError):
|
||||||
|
await self.sys_ingress.update_hass_panel(addon)
|
||||||
|
|
||||||
async def repair(self) -> None:
|
async def repair(self) -> None:
|
||||||
"""Repair local add-ons."""
|
"""Repair local add-ons."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user