async_create_task (#17059)

* async_create_task

* Update google.py
This commit is contained in:
cdce8p authored and Paulus Schoutsen committed 2018-10-02 11:03:09 +02:00
1 parent 37706c2731
commit 7f0a50ce31
41 files changed
+76 -72

No files matched your search

+2 -2
View File
@@ -34,7 +34,7 @@ async def test_bridge_setup_invalid_username():
side_effect=errors.AuthenticationRequired):
assert await hue_bridge.async_setup() is False
assert len(hass.async_add_job.mock_calls) == 1
assert len(hass.async_create_task.mock_calls) == 1
assert len(hass.config_entries.flow.async_init.mock_calls) == 1
assert hass.config_entries.flow.async_init.mock_calls[0][2]['data'] == {
'host': '1.2.3.4'
@@ -87,7 +87,7 @@ async def test_reset_if_entry_had_wrong_auth():
side_effect=errors.AuthenticationRequired):
assert await hue_bridge.async_setup() is False
assert len(hass.async_add_job.mock_calls) == 1
assert len(hass.async_create_task.mock_calls) == 1
assert await hue_bridge.async_reset()