Black
This commit is contained in:
1 parent
da05dfe708
commit
4de97abc3a
2676 files changed
+163166
-140084
No files matched your search
@@ -10,12 +10,9 @@ from tests.common import mock_coro
|
||||
|
||||
async def mock_cloud(hass, config=None):
|
||||
"""Mock cloud."""
|
||||
assert await async_setup_component(
|
||||
hass, cloud.DOMAIN, {
|
||||
'cloud': config or {}
|
||||
})
|
||||
cloud_inst = hass.data['cloud']
|
||||
with patch('hass_nabucasa.Cloud.run_executor', return_value=mock_coro()):
|
||||
assert await async_setup_component(hass, cloud.DOMAIN, {"cloud": config or {}})
|
||||
cloud_inst = hass.data["cloud"]
|
||||
with patch("hass_nabucasa.Cloud.run_executor", return_value=mock_coro()):
|
||||
await cloud_inst.start()
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user