Store remote domain in Cloud preferences (#64532)

This commit is contained in:
Erik Montnemery 2022-01-21 18:42:34 +01:00 committed by GitHub
parent 9f12612391
commit 3575009330
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 88 additions and 11 deletions

View file

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