Fix warning in test1.yaml (#3228)

This commit is contained in:
Otto Winter 2022-02-19 14:42:54 +01:00 committed by GitHub
parent 0c1520dd9c
commit ae57ad0c81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: