Update esphome/components/http_request/update/http_request_update.cpp

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
dentra 2024-09-17 20:58:36 +03:00 committed by GitHub
parent d9a2279b21
commit 9151525c9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;