mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-23 09:06:29 +00:00
Don't add dupe repos to data on startup (#3671)
This commit is contained in:
parent
5f9b999a3c
commit
b8259471b0
@ -167,9 +167,12 @@ class StoreManager(CoreSysAttributes, FileConfiguration):
|
||||
)
|
||||
|
||||
# Add Repository to list
|
||||
self._data[ATTR_REPOSITORIES].append(url)
|
||||
self.repositories[repository.slug] = repository
|
||||
self.save_data()
|
||||
|
||||
# On start-up we add the saved repos to force a load. But they're already in data
|
||||
if url not in self._data[ATTR_REPOSITORIES]:
|
||||
self._data[ATTR_REPOSITORIES].append(url)
|
||||
self.save_data()
|
||||
|
||||
# Persist changes
|
||||
if persist:
|
||||
|
Loading…
x
Reference in New Issue
Block a user