1
mirror of https://github.com/home-assistant/core synced 2024-09-15 17:29:45 +02:00

Fix unexpected error thrown if instance_domain is not set (#23615)

This commit is contained in:
Robbie Trencheny 2019-05-01 22:35:13 -07:00 committed by Paulus Schoutsen
parent 0fe21f2015
commit d1e44e35df

View File

@ -122,6 +122,9 @@ def async_remote_ui_url(hass) -> str:
if not async_is_logged_in(hass):
raise CloudNotAvailable
if not hass.data[DOMAIN].remote.instance_domain:
raise CloudNotAvailable
return "https://" + hass.data[DOMAIN].remote.instance_domain