Skip to content

Commit

Permalink
fix stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Nov 21, 2023
1 parent 9f36e60 commit f7292ca
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions tests/repositories/test_update_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ async def test_update_repository_entity(
await hass.config_entries.async_reload(hacs.configuration.config_entry.entry_id)
await hass.async_block_till_done()

# Get a new HACS instance after reload
hacs = get_hacs(hass)

er = async_get_entity_registry(hacs.hass)

entity_id = er.async_get_entity_id("update", DOMAIN, repo.data.id)
Expand Down Expand Up @@ -79,9 +82,6 @@ async def test_update_repository_websocket(
repo.data.installed = True
repo.data.installed_version = from_version

await hass.config_entries.async_reload(hacs.configuration.config_entry.entry_id)
await hass.async_block_till_done()

response = await ws_client.send_and_receive_json(
"hacs/repository/download", {"repository": repo.data.id, "version": to_version}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"dev": true,
"experimental": true
},
"stage": null,
"stage": "running",
"status": {
"active_frontend_endpoint_plugin": false,
"active_frontend_endpoint_theme": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@
"dev": true,
"experimental": true
},
"stage": null,
"stage": "running",
"status": {
"active_frontend_endpoint_plugin": false,
"active_frontend_endpoint_theme": false,
"inital_fetch_done": true,
"new": false,
"new": true,
"startup": false
},
"system": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"dev": true,
"experimental": true
},
"stage": null,
"stage": "running",
"status": {
"active_frontend_endpoint_plugin": false,
"active_frontend_endpoint_theme": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"category": "template",
"default_branch": "main",
"description": "This your first repo!",
"downloads": 42,
"full_name": "hacs-test-org/template-basic",
"id": "1296268",
"installed": true,
Expand Down Expand Up @@ -71,12 +72,12 @@
"dev": true,
"experimental": true
},
"stage": null,
"stage": "running",
"status": {
"active_frontend_endpoint_plugin": false,
"active_frontend_endpoint_theme": false,
"inital_fetch_done": true,
"new": false,
"new": true,
"startup": false
},
"system": {
Expand Down

0 comments on commit f7292ca

Please sign in to comment.