Skip to content

Commit 617fda1

Browse files
committed
Make sure we always return boolean from is_connected
1 parent 1609ce5 commit 617fda1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hass_nabucasa/remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def instance_domain(self) -> Optional[str]:
101101
@property
102102
def is_connected(self) -> bool:
103103
"""Return true if we are ready to connect."""
104-
return self._snitun and self._snitun.is_connected
104+
return False if self._snitun is None else self._snitun.is_connected
105105

106106
@property
107107
def certificate(self) -> Optional[Certificate]:

0 commit comments

Comments
 (0)