From 03884d05b4c596057b3f252b8c244d4580e36382 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 7 Oct 2025 14:34:03 -0500 Subject: [PATCH] fix test --- tests/components/api/common.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/components/api/common.yaml b/tests/components/api/common.yaml index d3c549fff0..d87ae56ec2 100644 --- a/tests/components/api/common.yaml +++ b/tests/components/api/common.yaml @@ -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(); ESP_LOGD("main", "Next hour temperature: %f", next_temperature); on_error: