homeassistant.exceptions

The exceptions used by Home Assistant.

exception homeassistant.exceptions.ConfigEntryNotReady[source]

Error to indicate that config entry is not ready.

exception homeassistant.exceptions.HomeAssistantError[source]

General Home Assistant exception occurred.

exception homeassistant.exceptions.InvalidEntityFormatError[source]

When an invalid formatted entity is encountered.

exception homeassistant.exceptions.InvalidStateError[source]

When an invalid state is encountered.

exception homeassistant.exceptions.NoEntitySpecifiedError[source]

When no entity is specified.

exception homeassistant.exceptions.PlatformNotReady[source]

Error to indicate that platform is not ready.

exception homeassistant.exceptions.ServiceNotFound(domain: str, service: str)[source]

Raised when a service is not found.

exception homeassistant.exceptions.TemplateError(exception: jinja2.exceptions.TemplateError)[source]

Error during template rendering.

exception homeassistant.exceptions.Unauthorized(context: Optional[Context] = None, user_id: Optional[str] = None, entity_id: Optional[str] = None, config_entry_id: Optional[str] = None, perm_category: Optional[str] = None, permission: Optional[str] = None)[source]

When an action is unauthorized.

exception homeassistant.exceptions.UnknownUser(context: Optional[Context] = None, user_id: Optional[str] = None, entity_id: Optional[str] = None, config_entry_id: Optional[str] = None, perm_category: Optional[str] = None, permission: Optional[str] = None)[source]

When call is made with user ID that doesn’t exist.