Skip to content

Commit

Permalink
Fix unexpected error thrown if instance_domain is not set (home-assis…
Browse files Browse the repository at this point in the history
  • Loading branch information
robbiet480 authored and balloob committed May 2, 2019
1 parent 0fe21f2 commit d1e44e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions homeassistant/components/cloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit d1e44e3

Please sign in to comment.