Public Member Functions | |
| bool | access_all_entities (self, str key) |
| bool | check_entity (self, str entity_id, str key) |
Static Public Attributes | |
| None | |
Private Member Functions | |
| Callable[[str, str], bool] | _entity_func (self) |
Private Attributes | |
| _cached_entity_func | |
Default permissions class.
Definition at line 29 of file __init__.py.
|
private |
Return a function that can test entity access.
Reimplemented in homeassistant.auth.permissions._OwnerPermissions, and homeassistant.auth.permissions.PolicyPermissions.
Definition at line 34 of file __init__.py.
| bool homeassistant.auth.permissions.AbstractPermissions.access_all_entities | ( | self, | |
| str | key | ||
| ) |
Check if we have a certain access to all entities.
Reimplemented in homeassistant.auth.permissions._OwnerPermissions, and homeassistant.auth.permissions.PolicyPermissions.
Definition at line 38 of file __init__.py.
| bool homeassistant.auth.permissions.AbstractPermissions.check_entity | ( | self, | |
| str | entity_id, | ||
| str | key | ||
| ) |
Check if we can access entity.
Definition at line 42 of file __init__.py.
|
private |
Definition at line 45 of file __init__.py.
|
static |
Definition at line 32 of file __init__.py.