mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-17 19:06:53 +00:00
Alexa Media Player ADDED - #421 - Added some test Notifications. (HA restart targetted notification)
This commit is contained in:
@@ -5,7 +5,7 @@ from ..repositories.repository import HacsRepository
|
||||
from ..repositories.manifest import HacsManifest
|
||||
from ..store import async_save_to_store, async_load_from_store
|
||||
|
||||
from custom_components.hacs.globals import get_hacs, removed_repositories, get_removed
|
||||
from custom_components.hacs.globals import get_hacs
|
||||
from custom_components.hacs.helpers.register_repository import register_repository
|
||||
|
||||
|
||||
@@ -35,10 +35,6 @@ class HacsData:
|
||||
},
|
||||
)
|
||||
|
||||
await async_save_to_store(
|
||||
self.hacs.hass, "removed", [x.__dict__ for x in removed_repositories]
|
||||
)
|
||||
|
||||
# Repositories
|
||||
content = {}
|
||||
for repository in self.hacs.repositories:
|
||||
@@ -77,7 +73,6 @@ class HacsData:
|
||||
"""Restore saved data."""
|
||||
hacs = await async_load_from_store(self.hacs.hass, "hacs")
|
||||
repositories = await async_load_from_store(self.hacs.hass, "repositories")
|
||||
removed = await async_load_from_store(self.hacs.hass, "removed")
|
||||
try:
|
||||
if not hacs and not repositories:
|
||||
# Assume new install
|
||||
@@ -90,10 +85,6 @@ class HacsData:
|
||||
self.hacs.configuration.frontend_compact = hacs.get("compact", False)
|
||||
self.hacs.configuration.onboarding_done = hacs.get("onboarding_done", False)
|
||||
|
||||
for entry in removed:
|
||||
removed_repo = get_removed(entry["repository"])
|
||||
removed_repo.update_data(entry)
|
||||
|
||||
# Repositories
|
||||
for entry in repositories:
|
||||
repo = repositories[entry]
|
||||
|
Reference in New Issue
Block a user