Skip to content

Commit

Permalink
Try alt setup
Browse files Browse the repository at this point in the history
  • Loading branch information
drc38 authored Nov 2, 2023
1 parent dfa65e3 commit 6db3f0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ async def test_setup_unload_and_reload_entry(hass, bypass_get_data):
# Set up the entry and assert that the values set during setup are where we expect
# them to be. Because we have patched the ocppDataUpdateCoordinator.async_get_data
# call, no code from custom_components/ocpp/api.py actually runs.
assert await async_setup_entry(hass, config_entry)
assert await hass.config_entries.async_setup(config_entry.entry_id)
await hass.async_block_till_done()

assert DOMAIN in hass.data and config_entry.entry_id in hass.data[DOMAIN]
assert type(hass.data[DOMAIN][config_entry.entry_id]) == CentralSystem

Expand Down

0 comments on commit 6db3f0e

Please sign in to comment.