Retry keyset cloud (#12270)
* Use less threads in helpers.event tests * Add helpers.event.async_call_later * Cloud: retry fetching keyset
This commit is contained in:
parent
134445f622
commit
f2296e1ff8
6 changed files with 66 additions and 40 deletions
|
@ -87,7 +87,7 @@ def test_initialize_loads_info(mock_os, hass):
|
|||
|
||||
with patch('homeassistant.components.cloud.open', mopen, create=True), \
|
||||
patch('homeassistant.components.cloud.Cloud._decode_claims'):
|
||||
cl._start_cloud(None)
|
||||
yield from cl.async_start(None)
|
||||
|
||||
assert cl.id_token == 'test-id-token'
|
||||
assert cl.access_token == 'test-access-token'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue