Home Assistant Unofficial Reference 2024.12.1
homeassistant.exceptions.Unauthorized Class Reference
Inheritance diagram for homeassistant.exceptions.Unauthorized:
[legend]
Collaboration diagram for homeassistant.exceptions.Unauthorized:
[legend]

Public Member Functions

None __init__ (self, Context|None context=None, str|None user_id=None, str|None entity_id=None, str|None config_entry_id=None, str|None perm_category=None, str|None permission=None)
 
- Public Member Functions inherited from homeassistant.exceptions.HomeAssistantError
None __init__ (self, *object args, str|None translation_domain=None, str|None translation_key=None, dict[str, str]|None translation_placeholders=None)
 
str __str__ (self)
 

Public Attributes

 config_entry_id
 
 context
 
 entity_id
 
 perm_category
 
 permission
 
 user_id
 
- Public Attributes inherited from homeassistant.exceptions.HomeAssistantError
 generate_message
 
 translation_domain
 
 translation_key
 
 translation_placeholders
 

Additional Inherited Members

- Static Public Attributes inherited from homeassistant.exceptions.HomeAssistantError
 bool
 
 None
 

Detailed Description

When an action is unauthorized.

Definition at line 226 of file exceptions.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.exceptions.Unauthorized.__init__ (   self,
Context | None   context = None,
str | None   user_id = None,
str | None   entity_id = None,
str | None   config_entry_id = None,
str | None   perm_category = None,
str | None   permission = None 
)
Unauthorized error.

Definition at line 229 of file exceptions.py.

Member Data Documentation

◆ config_entry_id

homeassistant.exceptions.Unauthorized.config_entry_id

Definition at line 247 of file exceptions.py.

◆ context

homeassistant.exceptions.Unauthorized.context

Definition at line 240 of file exceptions.py.

◆ entity_id

homeassistant.exceptions.Unauthorized.entity_id

Definition at line 246 of file exceptions.py.

◆ perm_category

homeassistant.exceptions.Unauthorized.perm_category

Definition at line 250 of file exceptions.py.

◆ permission

homeassistant.exceptions.Unauthorized.permission

Definition at line 251 of file exceptions.py.

◆ user_id

homeassistant.exceptions.Unauthorized.user_id

Definition at line 245 of file exceptions.py.


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