mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-12-24 12:29:08 +00:00
Refactor addon git repo (#5987)
* Refactor Repository into setup with inheritance * Remove subclasses of GitRepo
This commit is contained in:
@@ -409,7 +409,7 @@ async def coresys(
|
||||
coresys_obj.init_websession = AsyncMock()
|
||||
|
||||
# Don't remove files/folders related to addons and stores
|
||||
with patch("supervisor.store.git.GitRepoCustom.remove"):
|
||||
with patch("supervisor.store.git.GitRepo.remove"):
|
||||
yield coresys_obj
|
||||
|
||||
await coresys_obj.dbus.unload()
|
||||
@@ -611,7 +611,7 @@ async def repository(coresys: CoreSys):
|
||||
):
|
||||
await coresys.store.load()
|
||||
|
||||
repository_obj = Repository(
|
||||
repository_obj = Repository.create(
|
||||
coresys, "https://github.com/awesome-developer/awesome-repo"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user