Functions | |
| ValueType|None | _lookup_area (PermissionLookup perm_lookup, SubCategoryDict area_dict, str entity_id) |
| ValueType|None | _lookup_device (PermissionLookup perm_lookup, SubCategoryDict devices_dict, str entity_id) |
| ValueType|None | _lookup_domain (PermissionLookup perm_lookup, SubCategoryDict domains_dict, str entity_id) |
| ValueType|None | _lookup_entity_id (PermissionLookup perm_lookup, SubCategoryDict entities_dict, str entity_id) |
| Callable[[str, str], bool] | compile_entities (CategoryType policy, PermissionLookup perm_lookup) |
Variables | |
| string | ENTITY_AREAS = "area_ids" |
| string | ENTITY_DEVICE_IDS = "device_ids" |
| string | ENTITY_DOMAINS = "domains" |
| string | ENTITY_ENTITY_IDS = "entity_ids" |
| ENTITY_POLICY_SCHEMA | |
| ENTITY_VALUES_SCHEMA = vol.Any(True, vol.Schema({str: SINGLE_ENTITY_SCHEMA})) | |
| SINGLE_ENTITY_SCHEMA | |
Entity permissions.
|
private |
Look up entity permissions by area.
Definition at line 54 of file entities.py.
|
private |
Look up entity permissions by device.
Definition at line 71 of file entities.py.
|
private |
Look up entity permissions by domain.
Definition at line 47 of file entities.py.
|
private |
Look up entity permission by entity id.
Definition at line 83 of file entities.py.
| Callable[[str, str], bool] homeassistant.auth.permissions.entities.compile_entities | ( | CategoryType | policy, |
| PermissionLookup | perm_lookup | ||
| ) |
Compile policy into a function that tests policy.
Definition at line 90 of file entities.py.
| string homeassistant.auth.permissions.entities.ENTITY_AREAS = "area_ids" |
Definition at line 27 of file entities.py.
| string homeassistant.auth.permissions.entities.ENTITY_DEVICE_IDS = "device_ids" |
Definition at line 28 of file entities.py.
| string homeassistant.auth.permissions.entities.ENTITY_DOMAINS = "domains" |
Definition at line 26 of file entities.py.
| string homeassistant.auth.permissions.entities.ENTITY_ENTITY_IDS = "entity_ids" |
Definition at line 29 of file entities.py.
| homeassistant.auth.permissions.entities.ENTITY_POLICY_SCHEMA |
Definition at line 33 of file entities.py.
| homeassistant.auth.permissions.entities.ENTITY_VALUES_SCHEMA = vol.Any(True, vol.Schema({str: SINGLE_ENTITY_SCHEMA})) |
Definition at line 31 of file entities.py.
| homeassistant.auth.permissions.entities.SINGLE_ENTITY_SCHEMA |
Definition at line 15 of file entities.py.