mirror of
https://github.com/esphome/esphome.git
synced 2025-09-11 07:42:26 +01:00
fix type of ota object
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user