Cloud cognito switch (#10823)
* Allow email based cognito instance * Fix quitting Home Assistant while reconnecting * Lint
This commit is contained in:
1 parent
1b7a64412d
commit
fe0a9529ed
5 files changed
+60
-24
No files matched your search
@@ -104,6 +104,11 @@ class Cloud:
|
||||
self.region = info['region']
|
||||
self.relayer = info['relayer']
|
||||
|
||||
@property
|
||||
def cognito_email_based(self):
|
||||
"""Return if cognito is email based."""
|
||||
return not self.user_pool_id.endswith('GmV')
|
||||
|
||||
@property
|
||||
def is_logged_in(self):
|
||||
"""Get if cloud is logged in."""
|
||||
|
||||
Reference in new issue
Block a user