mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-16 14:30:26 +00:00
New fix for stale container on network (#2189)
* New fix for stale container on network * fix core repair * Clenaup before attach to network * Fix reload * Fix host network * Fix prune network * Remove refresh * Fix unpack * better name * clean order * Add comment why * more comments * Update supervisor/misc/tasks.py Co-authored-by: Joakim Sørensen <joasoe@gmail.com> Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
This commit is contained in:
@@ -190,6 +190,11 @@ class Tasks(CoreSysAttributes):
|
||||
except HomeAssistantError as err:
|
||||
_LOGGER.error("Home Assistant watchdog reanimation failed!")
|
||||
self.sys_capture_exception(err)
|
||||
else:
|
||||
return
|
||||
|
||||
_LOGGER.info("Rebuilding the Home Assistant Container")
|
||||
await self.sys_homeassistant.core.rebuild()
|
||||
|
||||
async def _watchdog_homeassistant_api(self):
|
||||
"""Create scheduler task for monitoring running state of API.
|
||||
|
||||
Reference in New Issue
Block a user