Guard cloud info being null (#1788)

This commit is contained in:
Paulus Schoutsen 2018-10-17 13:48:31 +02:00 committed by GitHub
parent 87fba75860
commit 1dcc645fec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,8 +107,9 @@ class HaConfigCloud extends NavigateMixin(PolymerElement) {
timeOut.after(0),
() => {
if (
!this.cloudStatus.logged_in &&
!NOT_LOGGED_IN_URLS.includes(route.path)
!this.cloudStatus ||
(!this.cloudStatus.logged_in &&
!NOT_LOGGED_IN_URLS.includes(route.path))
) {
this.navigate("/config/cloud/login", true);
} else if (