Helper class to setup the paho mqtt client from config.
Definition at line 276 of file client.py.
◆ __init__()
| None homeassistant.components.mqtt.client.MqttClientSetup.__init__ |
( |
|
self, |
|
|
ConfigType |
config |
|
) |
| |
Initialize the MQTT client setup helper.
self.setup must be run in an executor job.
Definition at line 281 of file client.py.
◆ client()
| AsyncMQTTClient homeassistant.components.mqtt.client.MqttClientSetup.client |
( |
|
self | ) |
|
Return the paho MQTT client.
Definition at line 355 of file client.py.
◆ setup()
| None homeassistant.components.mqtt.client.MqttClientSetup.setup |
( |
|
self | ) |
|
Set up the MQTT client.
The setup of the MQTT client should be run in an executor job,
because it accesses files, so it does IO.
Definition at line 289 of file client.py.
◆ _client
| homeassistant.components.mqtt.client.MqttClientSetup._client |
|
private |
◆ _config
| homeassistant.components.mqtt.client.MqttClientSetup._config |
|
private |
The documentation for this class was generated from the following file: