From 9151525c9e779f1e13258dbfe68494a20516e47a Mon Sep 17 00:00:00 2001 From: dentra Date: Tue, 17 Sep 2024 20:58:36 +0300 Subject: [PATCH] Update esphome/components/http_request/update/http_request_update.cpp Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> --- esphome/components/http_request/update/http_request_update.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/http_request/update/http_request_update.cpp b/esphome/components/http_request/update/http_request_update.cpp index a27c5ced0e..4e1686ce42 100644 --- a/esphome/components/http_request/update/http_request_update.cpp +++ b/esphome/components/http_request/update/http_request_update.cpp @@ -127,7 +127,7 @@ void HttpRequestUpdate::update() { if (this->update_info_.latest_version.empty() || this->update_info_.latest_version == this->update_info_.current_version || - !this->check_update_(this->update_info_)) { + (this->check_update_ != nullptr && !this->check_update_(this->update_info_))) { this->state_ = update::UPDATE_STATE_NO_UPDATE; this->update_info_.latest_version = this->update_info_.current_version;