mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 06:37:52 +00:00
Fix unexpected error thrown if instance_domain is not set (#23615)
This commit is contained in:
parent
35e9505ad5
commit
bc9548fdaf
@ -122,6 +122,9 @@ def async_remote_ui_url(hass) -> str:
|
|||||||
if not async_is_logged_in(hass):
|
if not async_is_logged_in(hass):
|
||||||
raise CloudNotAvailable
|
raise CloudNotAvailable
|
||||||
|
|
||||||
|
if not hass.data[DOMAIN].remote.instance_domain:
|
||||||
|
raise CloudNotAvailable
|
||||||
|
|
||||||
return "https://" + hass.data[DOMAIN].remote.instance_domain
|
return "https://" + hass.data[DOMAIN].remote.instance_domain
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user