Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardtfn committed Oct 15, 2024
1 parent 201805f commit 9f3d549
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions esphome/nspanel_esphome_core_hw_display.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1232,16 +1232,16 @@ text_sensor:
internal: true
on_value:
then:
- lambda: |-
DynamicJsonDocument json(1024);
DeserializationError error = deserializeJson(json, x.c_str());
if (error) {
ESP_LOGE("text_sensor.disp1_local_event", "Error parsing json: %s", x.c_str());
ESP_LOGE("text_sensor.disp1_local_event", "Error: %s", error.c_str());
} else {
const std::string page = json["page"];
event_from_display->execute(json, page.c_str());
}
- lambda: |-
DynamicJsonDocument json(1024);
DeserializationError error = deserializeJson(json, x.c_str());
if (error) {
ESP_LOGE("text_sensor.disp1_local_event", "Error parsing json: %s", x.c_str());
ESP_LOGE("text_sensor.disp1_local_event", "Error: %s", error.c_str());
} else {
const std::string page = json["page"];
event_from_display->execute(json, page.c_str());
}
uart: ## UART for Nextion display
- id: tf_uart
Expand Down

0 comments on commit 9f3d549

Please sign in to comment.