mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-12-26 13:37:06 +00:00
Do not backup add-on being uninstalled (#5917)
This commit is contained in:
@@ -40,6 +40,7 @@ from supervisor.const import (
|
||||
ATTR_TYPE,
|
||||
ATTR_VERSION,
|
||||
REQUEST_FROM,
|
||||
AddonState,
|
||||
CoreState,
|
||||
)
|
||||
from supervisor.coresys import CoreSys
|
||||
@@ -615,6 +616,7 @@ async def install_addon_ssh(coresys: CoreSys, repository):
|
||||
coresys.addons.data._data = coresys.addons.data._schema(coresys.addons.data._data)
|
||||
|
||||
addon = Addon(coresys, store.slug)
|
||||
addon.state = AddonState.STOPPED
|
||||
coresys.addons.local[addon.slug] = addon
|
||||
yield addon
|
||||
|
||||
@@ -627,6 +629,7 @@ async def install_addon_example(coresys: CoreSys, repository):
|
||||
coresys.addons.data._data = coresys.addons.data._schema(coresys.addons.data._data)
|
||||
|
||||
addon = Addon(coresys, store.slug)
|
||||
addon.state = AddonState.STOPPED
|
||||
coresys.addons.local[addon.slug] = addon
|
||||
yield addon
|
||||
|
||||
|
||||
Reference in New Issue
Block a user