Add cloud pref for Google unlock (#18600)
This commit is contained in:
1 parent
b7742999cf
commit
d9c7f777c5
8 files changed
+103
-66
No files matched your search
@@ -2,6 +2,7 @@
|
||||
from unittest.mock import patch
|
||||
from homeassistant.setup import async_setup_component
|
||||
from homeassistant.components import cloud
|
||||
from homeassistant.components.cloud import const
|
||||
|
||||
from jose import jwt
|
||||
|
||||
@@ -24,9 +25,10 @@ def mock_cloud(hass, config={}):
|
||||
def mock_cloud_prefs(hass, prefs={}):
|
||||
"""Fixture for cloud component."""
|
||||
prefs_to_set = {
|
||||
cloud.STORAGE_ENABLE_ALEXA: True,
|
||||
cloud.STORAGE_ENABLE_GOOGLE: True,
|
||||
const.PREF_ENABLE_ALEXA: True,
|
||||
const.PREF_ENABLE_GOOGLE: True,
|
||||
const.PREF_GOOGLE_ALLOW_UNLOCK: True,
|
||||
}
|
||||
prefs_to_set.update(prefs)
|
||||
hass.data[cloud.DOMAIN]._prefs = prefs_to_set
|
||||
hass.data[cloud.DOMAIN].prefs._prefs = prefs_to_set
|
||||
return prefs_to_set
|
||||
Reference in new issue
Block a user