Fix Cloud Google/Alexa check (#46681)

This commit is contained in:
Paulus Schoutsen 2021-02-16 21:49:53 -08:00 committed by GitHub
parent 58f6db0127
commit b956a571f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 54 additions and 5 deletions

View file

@ -62,7 +62,11 @@ class AlexaConfig(alexa_config.AbstractConfig):
@property
def enabled(self):
"""Return if Alexa is enabled."""
return self._prefs.alexa_enabled
return (
self._cloud.is_logged_in
and not self._cloud.subscription_expired
and self._prefs.alexa_enabled
)
@property
def supports_auth(self):