Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.mqtt.models.MqttValueTemplateException Class Reference
Inheritance diagram for homeassistant.components.mqtt.models.MqttValueTemplateException:
[legend]
Collaboration diagram for homeassistant.components.mqtt.models.MqttValueTemplateException:
[legend]

Public Member Functions

None __init__ (self, *object args, Exception base_exception, str value_template, ReceivePayloadType|PayloadSentinel default, ReceivePayloadType payload, str|None entity_id=None)
 
str __str__ (self)
 
- Public Member Functions inherited from homeassistant.exceptions.TemplateError
None __init__ (self, Exception|str exception)
 
- 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)
 

Private Attributes

 _message
 

Additional Inherited Members

- Public Attributes inherited from homeassistant.exceptions.HomeAssistantError
 generate_message
 
 translation_domain
 
 translation_key
 
 translation_placeholders
 
- Static Public Attributes inherited from homeassistant.exceptions.HomeAssistantError
 bool
 
 None
 

Detailed Description

Handle MqttValueTemplate exceptions.

Definition at line 225 of file models.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.mqtt.models.MqttValueTemplateException.__init__ (   self,
*object  args,
Exception  base_exception,
str  value_template,
ReceivePayloadType | PayloadSentinel  default,
ReceivePayloadType  payload,
str | None   entity_id = None 
)
Initialize exception.

Definition at line 230 of file models.py.

Member Function Documentation

◆ __str__()

str homeassistant.components.mqtt.models.MqttValueTemplateException.__str__ (   self)
Return exception message string.

Reimplemented from homeassistant.exceptions.HomeAssistantError.

Definition at line 252 of file models.py.

Member Data Documentation

◆ _message

homeassistant.components.mqtt.models.MqttValueTemplateException._message
private

Definition at line 247 of file models.py.


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