mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-27 19:16:29 +00:00
fix old code
This commit is contained in:
parent
871721f04b
commit
76952db3eb
@ -32,7 +32,7 @@ class AddonManager(AddonsData):
|
|||||||
self.repositories.append(AddonsRepoHassIO(self.config, self.loop))
|
self.repositories.append(AddonsRepoHassIO(self.config, self.loop))
|
||||||
|
|
||||||
# init custom repositories
|
# init custom repositories
|
||||||
for url, slug in self.config.addons_repositories.items():
|
for url in self.config.addons_repositories:
|
||||||
self.repositories.append(
|
self.repositories.append(
|
||||||
AddonsRepoCustom(self.config, self.loop, url))
|
AddonsRepoCustom(self.config, self.loop, url))
|
||||||
|
|
||||||
@ -97,10 +97,7 @@ class AddonManager(AddonsData):
|
|||||||
async def auto_boot(self, start_type):
|
async def auto_boot(self, start_type):
|
||||||
"""Boot addons with mode auto."""
|
"""Boot addons with mode auto."""
|
||||||
boot_list = self.list_startup(start_type)
|
boot_list = self.list_startup(start_type)
|
||||||
tasks = []
|
tasks = [self.start(addon) from addon in boot_list]
|
||||||
|
|
||||||
for addon in boot_list:
|
|
||||||
tasks.append(self.loop.create_task(self.start(addon)))
|
|
||||||
|
|
||||||
_LOGGER.info("Startup %s run %d addons", start_type, len(tasks))
|
_LOGGER.info("Startup %s run %d addons", start_type, len(tasks))
|
||||||
if tasks:
|
if tasks:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user