1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-31 07:03:55 +00: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 capture_response: true
on_success: on_success:
- lambda: |- - 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>(); float next_temperature = next_hour["temperature"].as<float>();
ESP_LOGD("main", "Next hour temperature: %f", next_temperature); ESP_LOGD("main", "Next hour temperature: %f", next_temperature);
on_error: on_error: