mirror of
https://github.com/esphome/esphome.git
synced 2025-10-17 01:03:46 +01:00
fix test
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user