Added support for private storage. (#16878)
* Addded support for private storage. Include 'private' flag parameters to the Store class and save_json function. Updated various authentication and onboarding classes to use private stores. Fixed unit test for emulated_hue which used a mock patch on save_json(). * Fixed Hound formatting issues not detected by local linting.
This commit is contained in:
1 parent
e205092693
commit
e5861241c7
8 files changed
+64
-53
No files matched your search
@@ -85,7 +85,7 @@ class NotifyAuthModule(MultiFactorAuthModule):
|
||||
super().__init__(hass, config)
|
||||
self._user_settings = None # type: Optional[_UsersDict]
|
||||
self._user_store = hass.helpers.storage.Store(
|
||||
STORAGE_VERSION, STORAGE_KEY)
|
||||
STORAGE_VERSION, STORAGE_KEY, private=True)
|
||||
self._include = config.get(CONF_INCLUDE, [])
|
||||
self._exclude = config.get(CONF_EXCLUDE, [])
|
||||
self._message_template = config[CONF_MESSAGE]
|
||||
|
||||
Reference in new issue
Block a user