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:
1 parent
134445f622
commit
f2296e1ff8
6 files changed
+66
-40
No files matched your search
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user