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:
Paulus Schoutsen 2018-02-10 02:40:24 -08:00 committed by Pascal Vizeli
parent 134445f622
commit f2296e1ff8
6 changed files with 66 additions and 40 deletions

View file

@ -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'