Home Assistant Unofficial Reference 2024.12.1
homeassistant.auth.models.User Class Reference

Public Member Functions

None invalidate_cache (self)
 
bool is_admin (self)
 
perm_mdl.AbstractPermissions permissions (self)
 

Static Public Attributes

 bool
 
 default
 
 dict
 
 eq
 
 factory
 
 False
 
 list
 
 None
 
 on_setattr
 
 order
 
 PermissionLookup
 
 str
 

Detailed Description

A user.

Definition at line 56 of file models.py.

Member Function Documentation

◆ invalidate_cache()

None homeassistant.auth.models.User.invalidate_cache (   self)
Invalidate permission and is_admin cache.

Definition at line 96 of file models.py.

◆ is_admin()

bool homeassistant.auth.models.User.is_admin (   self)
Return if user is part of the admin group.

Definition at line 90 of file models.py.

◆ permissions()

perm_mdl.AbstractPermissions homeassistant.auth.models.User.permissions (   self)
Return permissions object for user.

Definition at line 80 of file models.py.

Member Data Documentation

◆ bool

homeassistant.auth.models.User.bool
static

Definition at line 62 of file models.py.

◆ default

homeassistant.auth.models.User.default
static

Definition at line 62 of file models.py.

◆ dict

homeassistant.auth.models.User.dict
static

Definition at line 76 of file models.py.

◆ eq

homeassistant.auth.models.User.eq
static

Definition at line 60 of file models.py.

◆ factory

homeassistant.auth.models.User.factory
static

Definition at line 61 of file models.py.

◆ False

homeassistant.auth.models.User.False
static

Definition at line 60 of file models.py.

◆ list

homeassistant.auth.models.User.list
static

Definition at line 68 of file models.py.

◆ None

homeassistant.auth.models.User.None
static

Definition at line 59 of file models.py.

◆ on_setattr

homeassistant.auth.models.User.on_setattr
static

Definition at line 62 of file models.py.

◆ order

homeassistant.auth.models.User.order
static

Definition at line 60 of file models.py.

◆ PermissionLookup

homeassistant.auth.models.User.PermissionLookup
static

Definition at line 60 of file models.py.

◆ str

homeassistant.auth.models.User.str
static

Definition at line 61 of file models.py.


The documentation for this class was generated from the following file: