mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-09 02:49:43 +00:00
Move addon repo migration to bootstrap (#3672)
* Move addon repo migration to bootstrap * Save data after migrating it
This commit is contained in:
@@ -16,7 +16,7 @@ from supervisor import config as su_config
|
||||
from supervisor.addons.addon import Addon
|
||||
from supervisor.api import RestAPI
|
||||
from supervisor.bootstrap import initialize_coresys
|
||||
from supervisor.const import ATTR_REPOSITORIES, REQUEST_FROM
|
||||
from supervisor.const import ATTR_ADDONS_CUSTOM_LIST, ATTR_REPOSITORIES, REQUEST_FROM
|
||||
from supervisor.coresys import CoreSys
|
||||
from supervisor.dbus.agent import OSAgent
|
||||
from supervisor.dbus.const import DBUS_SIGNAL_NM_CONNECTION_ACTIVE_CHANGED
|
||||
@@ -322,7 +322,7 @@ async def repository(coresys: CoreSys):
|
||||
coresys.store._data[ATTR_REPOSITORIES].remove(
|
||||
"https://github.com/esphome/home-assistant-addon"
|
||||
)
|
||||
coresys.config.clear_addons_repositories()
|
||||
coresys.config._data[ATTR_ADDONS_CUSTOM_LIST] = []
|
||||
|
||||
with patch(
|
||||
"supervisor.store.validate.BUILTIN_REPOSITORIES", {"local", "core"}
|
||||
|
||||
Reference in New Issue
Block a user