Skip to content

Commit

Permalink
Signal dispatcher on repository updates (#3078)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Feb 26, 2023
1 parent 7679227 commit 723b88a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions custom_components/hacs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,15 @@ async def async_get_category_repositories_experimental(self, category: str) -> N
repository.repository_manifest.update_data(
{**dict(HACS_MANIFEST_KEYS_TO_EXPORT), **manifest}
)
self.async_dispatch(
HacsDispatchEvent.REPOSITORY,
{
"id": 1337,
"action": "update",
"repository": repository.data.full_name,
"repository_id": repository.data.id,
},
)

if category == "integration":
self.status.inital_fetch_done = True
Expand Down

0 comments on commit 723b88a

Please sign in to comment.