Clarify cloud docstring (#64841)

This commit is contained in:
Erik Montnemery 2022-01-24 17:06:08 +01:00 committed by GitHub
parent 3a978fc244
commit 8ea2f865ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,7 +117,10 @@ class CloudNotAvailable(HomeAssistantError):
@bind_hass
@callback
def async_is_logged_in(hass: HomeAssistant) -> bool:
"""Test if user is logged in."""
"""Test if user is logged in.
Note: This returns True even if not currently connected to the cloud.
"""
return DOMAIN in hass.data and hass.data[DOMAIN].is_logged_in