From ae57ad0c810fbf646ae2e5c2f142cfd37cafe1ee Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Sat, 19 Feb 2022 14:42:54 +0100 Subject: [PATCH] Fix warning in test1.yaml (#3228) --- tests/test1.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/test1.yaml b/tests/test1.yaml index 8b99f86773..7eb1b457db 100644 --- a/tests/test1.yaml +++ b/tests/test1.yaml @@ -1097,8 +1097,8 @@ sensor: temperature: name: Max9611 Temp update_interval: 1s - - + + esp32_touch: setup_mode: False iir_filter: 10ms @@ -1317,18 +1317,18 @@ binary_sensor: - platform: analog_threshold name: Analog Trheshold 1 sensor_id: template_sensor - threshold: + threshold: upper: 110 lower: 90 - filters: + filters: - delayed_on: 0s - delayed_off: 10s - platform: analog_threshold name: Analog Trheshold 2 sensor_id: template_sensor threshold: 100 - filters: - - invert: + filters: + - invert: pca9685: frequency: 500 @@ -2514,7 +2514,7 @@ text_sensor: on_notify: then: - lambda: |- - ESP_LOGD("green_btn", "Location changed: %s", x); + ESP_LOGD("green_btn", "Location changed: %s", x.c_str()); - platform: mqtt_subscribe name: "MQTT Subscribe Text" topic: "the/topic" @@ -2582,7 +2582,7 @@ canbus: then: - lambda: |- std::string b(x.begin(), x.end()); - ESP_LOGD("canid 500", "%s", &b[0] ); + ESP_LOGD("canid 500", "%s", b.c_str()); - can_id: 23 then: - if: @@ -2620,7 +2620,7 @@ canbus: then: - lambda: |- std::string b(x.begin(), x.end()); - ESP_LOGD("canid 500", "%s", &b[0] ); + ESP_LOGD("canid 500", "%s", b.c_str() ); - can_id: 23 then: - if: