|
| None | __init__ (self, HomeAssistant hass, ConfigEntry config_entry, ConfigType conf) |
| |
| None | async_connect (self, asyncio.Future[bool] client_available) |
| |
| None | async_disconnect (self, bool disconnect_paho_client=False) |
| |
| None | async_init_client (self) |
| |
| None | async_publish (self, str topic, PublishPayloadType payload, int qos, bool retain) |
| |
| None | async_restore_tracked_subscriptions (self, set[Subscription] subscriptions) |
| |
| None | async_start (self, MqttData mqtt_data) |
| |
| Callable[[], None] | async_subscribe (self, str topic, Callable[[ReceiveMessage], Coroutine[Any, Any, None]|None] msg_callback, int qos, str|None encoding=None, HassJobType|None job_type=None) |
| |
| None | cleanup (self) |
| |
| set[Subscription] | subscriptions (self) |
| |
|
| None | _async_cancel_reconnect (self) |
| |
| AsyncGenerator[None] | _async_connect_in_executor (self) |
| |
| None | _async_connection_result (self, bool connected) |
| |
| asyncio.Future[None] | _async_get_mid_future (self, int mid) |
| |
| None | _async_ha_started (self, HomeAssistant _hass) |
| |
| None | _async_ha_stop (self, Event _event) |
| |
| None | _async_mqtt_on_callback (self, mqtt.Client _mqttc, None _userdata, int mid, tuple[int,...]|mqtt.ReasonCodes|None _granted_qos_reason=None, mqtt.ReasonCodes|None _properties_reason=None) |
| |
| None | _async_mqtt_on_connect (self, mqtt.Client _mqttc, None _userdata, dict[str, int] _flags, int result_code, mqtt.Properties|None properties=None) |
| |
| None | _async_mqtt_on_disconnect (self, mqtt.Client _mqttc, None _userdata, int result_code, mqtt.Properties|None properties=None) |
| |
| None | _async_mqtt_on_message (self, mqtt.Client _mqttc, None _userdata, mqtt.MQTTMessage msg) |
| |
| None | _async_on_disconnect (self, int result_code) |
| |
| None | _async_on_socket_close (self, mqtt.Client client, Any userdata, SocketType sock) |
| |
| None | _async_on_socket_open (self, mqtt.Client client, Any userdata, SocketType sock) |
| |
| None | _async_on_socket_register_write (self, mqtt.Client client, Any userdata, SocketType sock) |
| |
| None | _async_on_socket_unregister_write (self, mqtt.Client client, Any userdata, SocketType sock) |
| |
| None | _async_perform_subscriptions (self) |
| |
| None | _async_perform_unsubscribes (self) |
| |
| None | _async_queue_resubscribe (self) |
| |
| None | _async_queue_subscriptions (self, Iterable[tuple[str, int]] subscriptions, bool queue_only=False) |
| |
| None | _async_reader_callback (self, mqtt.Client client) |
| |
| None | _async_remove (self, Subscription subscription) |
| |
| None | _async_resubscribe_and_publish_birth_message (self, PublishMessage birth_message) |
| |
| None | _async_start_misc_periodic (self) |
| |
| None | _async_timeout_mid (self, asyncio.Future[None] future) |
| |
| None | _async_track_subscription (self, Subscription subscription) |
| |
| None | _async_unsubscribe (self, str topic) |
| |
| None | _async_untrack_subscription (self, Subscription subscription) |
| |
| None | _async_wait_for_mid_or_raise (self, int mid, int result_code) |
| |
| None | _async_writer_callback (self, mqtt.Client client) |
| |
| None | _discovery_cooldown (self) |
| |
| str | _exception_message (self, Callable[[ReceiveMessage], Coroutine[Any, Any, None]|None] msg_callback, ReceiveMessage msg) |
| |
| None | _increase_socket_buffer_size (self, SocketType sock) |
| |
| bool | _is_active_subscription (self, str topic) |
| |
| list[Subscription] | _matching_subscriptions (self, str topic) |
| |
| None | _on_socket_open (self, mqtt.Client client, Any userdata, SocketType sock) |
| |
| None | _on_socket_register_write (self, mqtt.Client client, Any userdata, SocketType sock) |
| |
| None | _reconnect_loop (self) |
| |
Home Assistant MQTT client.
Definition at line 360 of file client.py.