mirror of
https://github.com/esphome/esphome.git
synced 2025-08-03 00:47:47 +00:00
fix type of ota object
This commit is contained in:
parent
d97f473e4a
commit
8ad4d3b6f5
@ -100,7 +100,7 @@ void HttpRequestUpdate::update_task(void *params) {
|
||||
ESP_LOGE(TAG, "Manifest does not contain required fields");
|
||||
return false;
|
||||
}
|
||||
auto ota = build["ota"];
|
||||
JsonObject ota = build["ota"].as<JsonObject>();
|
||||
if (!ota["path"].is<JsonVariant>() || !ota["md5"].is<JsonVariant>()) {
|
||||
ESP_LOGE(TAG, "Manifest does not contain required fields");
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user