mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-09 10:59:43 +00:00
Cache existence of addon paths (#4944)
* Cache existence of addon paths * Always update submodules * Switch to an always cached model * Cache on store addon only * Fix tests * refresh_cache to refresh_path_cache * Fix name change in test * Move logic into StoreManager
This commit is contained in:
@@ -393,7 +393,7 @@ async def test_store_data_changes_during_update(
|
||||
update_task = coresys.create_task(simulate_update())
|
||||
await asyncio.sleep(0)
|
||||
|
||||
with patch.object(Repository, "update"):
|
||||
with patch.object(Repository, "update", return_value=True):
|
||||
await coresys.store.reload()
|
||||
|
||||
assert "image" not in coresys.store.data.addons["local_ssh"]
|
||||
|
||||
Reference in New Issue
Block a user