MQTT is no longer required for ESPhome to work (#1432)

This commit is contained in:
Quentin Stafford-Fraser 2021-09-13 21:18:22 +01:00 committed by GitHub
parent fb7fc5903b
commit 12fdb6e589
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,15 +6,13 @@ MQTT Client Component
:image: mqtt.png :image: mqtt.png
:keywords: MQTT :keywords: MQTT
The MQTT Client Component sets up the MQTT connection to your broker and The MQTT Client Component sets up the MQTT connection to your broker.
is currently required for ESPHome to work. In most cases, you will If you are connecting to Home Assistant, you may prefer to use the native API,
just be able to copy over the `MQTT in which case this is not needed.
section <https://www.home-assistant.io/components/mqtt/>`__ of your Home
Assistant configuration.
.. warning:: .. warning::
When enabling MQTT and you do *not* use the "native API" for Home Assistant, you must If you enable MQTT and you do *not* use the "native API" for Home Assistant, you must
remove the ``api:`` line from your ESPHome configuration, otherwise the ESP will remove the ``api:`` line from your ESPHome configuration, otherwise the ESP will
reboot every 15 minutes because no client connected to the native API. reboot every 15 minutes because no client connected to the native API.