Fix ble_client YAML syntax (#1196)

This patch fixes YAML indentation.
Adding 2 spaces before the C++ code avoids to get the following error:

ERROR Error while reading config: Invalid YAML syntax:

while scanning a simple key
  in "/config/esphome/HOSTNAME.yaml", line 31, column 11:
              ESP_LOGD("ble_client_lambda", "C ... 
              ^
could not find expected ':'
  in "/config/esphome/HOSTNAME.yaml", line 32, column 5:
        on_disconnect:
        ^
This commit is contained in:
Albin Kauffmann 2021-05-25 10:27:07 +02:00 committed by GitHub
parent 911c930ba8
commit c1c675d51a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ This automation is triggered when the client connects to the BLE device.
on_connect:
then:
- lambda: |-
ESP_LOGD("ble_client_lambda", "Connected to BLE device");
ESP_LOGD("ble_client_lambda", "Connected to BLE device");
.. _ble_client-on_disconnect:
@ -89,7 +89,7 @@ This automation is triggered when the client disconnects from a BLE device.
on_disconnect:
then:
- lambda: |-
ESP_LOGD("ble_client_lambda", "Disconnected from BLE device");
ESP_LOGD("ble_client_lambda", "Disconnected from BLE device");
BLE Overview
------------