Functions | |
| Callable[[str, str], bool|None] | _gen_dict_test_func (PermissionLookup perm_lookup, LookupFunc lookup_func, SubCategoryDict lookup_dict) |
| Callable[[str, str], bool] | compile_policy (CategoryType policy, SubCatLookupType subcategories, PermissionLookup perm_lookup) |
| ValueType | lookup_all (PermissionLookup perm_lookup, SubCategoryDict lookup_dict, str object_id) |
| bool | test_all (CategoryType policy, str key) |
Variables | |
| LookupFunc | |
| SubCatLookupType | |
Helpers to deal with permissions.
|
private |
| Callable[[str, str], bool] homeassistant.auth.permissions.util.compile_policy | ( | CategoryType | policy, |
| SubCatLookupType | subcategories, | ||
| PermissionLookup | perm_lookup | ||
| ) |
| ValueType homeassistant.auth.permissions.util.lookup_all | ( | PermissionLookup | perm_lookup, |
| SubCategoryDict | lookup_dict, | ||
| str | object_id | ||
| ) |
| bool homeassistant.auth.permissions.util.test_all | ( | CategoryType | policy, |
| str | key | ||
| ) |