mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Simplify cloud request connection handling (#56243)
Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
This commit is contained in:
@@ -163,7 +163,9 @@ async def test_remote_ui_url(hass, mock_cloud_fixture):
|
||||
with pytest.raises(cloud.CloudNotAvailable):
|
||||
cloud.async_remote_ui_url(hass)
|
||||
|
||||
await cl.client.prefs.async_update(remote_enabled=True)
|
||||
with patch.object(cl.remote, "connect"):
|
||||
await cl.client.prefs.async_update(remote_enabled=True)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
# No instance domain
|
||||
with pytest.raises(cloud.CloudNotAvailable):
|
||||
|
||||
Reference in New Issue
Block a user