Add permissions foundation (#16890)
* Add permission foundation * Address comments * typing * False > True * Convert more lambdas * Use constants * Remove support for False * Fix only allow True
This commit is contained in:
parent
5961f2f577
commit
61f7a39748
7 changed files with 532 additions and 9 deletions
|
@ -302,6 +302,7 @@ async def test_saving_loading(hass, hass_storage):
|
|||
store2 = auth_store.AuthStore(hass)
|
||||
users = await store2.async_get_users()
|
||||
assert len(users) == 1
|
||||
assert users[0].permissions == user.permissions
|
||||
assert users[0] == user
|
||||
assert len(users[0].refresh_tokens) == 2
|
||||
for r_token in users[0].refresh_tokens.values():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue