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

Public Member Functions

None __init__ (self, *object args, Exception base_exception, str command_template, PublishPayloadType value, str|None entity_id=None)
 
str __str__ (self)
 
- 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)
 

Public Attributes

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

Private Attributes

 _message
 

Additional Inherited Members

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

Detailed Description

Handle MqttCommandTemplate exceptions.

Definition at line 137 of file models.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.mqtt.models.MqttCommandTemplateException.__init__ (   self,
*object  args,
Exception  base_exception,
str  command_template,
PublishPayloadType  value,
str | None   entity_id = None 
)
Initialize exception.

Definition at line 142 of file models.py.

Member Function Documentation

◆ __str__()

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

Reimplemented from homeassistant.exceptions.HomeAssistantError.

Definition at line 166 of file models.py.

Member Data Documentation

◆ _message

homeassistant.components.mqtt.models.MqttCommandTemplateException._message
private

Definition at line 161 of file models.py.

◆ translation_domain

homeassistant.components.mqtt.models.MqttCommandTemplateException.translation_domain

Definition at line 153 of file models.py.

◆ translation_key

homeassistant.components.mqtt.models.MqttCommandTemplateException.translation_key

Definition at line 154 of file models.py.

◆ translation_placeholders

homeassistant.components.mqtt.models.MqttCommandTemplateException.translation_placeholders

Definition at line 155 of file models.py.


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