1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-17 01:03:46 +01:00
This commit is contained in:
J. Nick Koston
2025-10-07 14:34:03 -05:00
parent 0fa47e3bf5
commit 03884d05b4

View File

@@ -18,7 +18,7 @@ esphome:
capture_response: true
on_success:
- lambda: |-
JsonObject next_hour = response["response"]["weather.forecast_home"]["forecast"][0];
JsonObjectConst next_hour = response["response"]["weather.forecast_home"]["forecast"][0];
float next_temperature = next_hour["temperature"].as<float>();
ESP_LOGD("main", "Next hour temperature: %f", next_temperature);
on_error: