Skip to content

Commit

Permalink
Fix spelling of HacsBase.async_process_queue (#3567)
Browse files Browse the repository at this point in the history
Co-authored-by: Joakim Sørensen <[email protected]>
  • Loading branch information
emontnemery and ludeeus authored Apr 12, 2024
1 parent e7929b7 commit b67daac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions custom_components/hacs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ async def startup_tasks(self, _=None) -> None:
async_track_time_interval(self.hass, self.async_check_rate_limit, timedelta(minutes=5))
)
self.recurring_tasks.append(
async_track_time_interval(self.hass, self.async_prosess_queue, timedelta(minutes=10))
async_track_time_interval(self.hass, self.async_process_queue, timedelta(minutes=10))
)

self.recurring_tasks.append(
Expand Down Expand Up @@ -696,7 +696,7 @@ async def startup_tasks(self, _=None) -> None:
self.async_dispatch(HacsDispatchEvent.RELOAD, {"force": True})

await self.async_handle_critical_repositories()
await self.async_prosess_queue()
await self.async_process_queue()

self.async_dispatch(HacsDispatchEvent.STATUS, {})

Expand Down Expand Up @@ -964,9 +964,9 @@ async def async_check_rate_limit(self, _=None) -> None:
self.log.debug("Ratelimit indicate we can update %s", can_update)
if can_update > 0:
self.enable_hacs()
await self.async_prosess_queue()
await self.async_process_queue()

async def async_prosess_queue(self, _=None) -> None:
async def async_process_queue(self, _=None) -> None:
"""Process the queue."""
if self.system.disabled:
self.log.debug("HACS is disabled")
Expand Down
2 changes: 1 addition & 1 deletion tests/hacsbase/test_hacs.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def test_hacs(hacs, repository, tmpdir):
for category in [x for x in list(HacsCategory) if x != HacsCategory.INTEGRATION]:
assert not hacs.repositories.category_downloaded(category=category)

await hacs.async_prosess_queue()
await hacs.async_process_queue()


async def test_add_remove_repository(hacs, repository, tmpdir):
Expand Down

0 comments on commit b67daac

Please sign in to comment.