Store remote domain in Cloud preferences (#64532)
This commit is contained in:
parent
9f12612391
commit
3575009330
10 changed files with 88 additions and 11 deletions
|
@ -171,6 +171,7 @@ async def test_remote_ui_url(hass, mock_cloud_fixture):
|
|||
with pytest.raises(cloud.CloudNotAvailable):
|
||||
cloud.async_remote_ui_url(hass)
|
||||
|
||||
cl.remote._instance_domain = "example.com"
|
||||
# Remote finished initializing
|
||||
cl.client.prefs._prefs["remote_domain"] = "example.com"
|
||||
|
||||
assert cloud.async_remote_ui_url(hass) == "https://example.com"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue