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

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

View file

@ -33,7 +33,7 @@ class HttpRequestUpdate : public update::UpdateEntity, public PollingComponent {
HttpRequestComponent *request_parent_;
OtaHttpRequestComponent *ota_parent_;
std::string source_url_;
std::function<bool(const update::UpdateInfo &)> check_update_{[](const update::UpdateInfo &) { return true; }};
std::function<bool(const update::UpdateInfo &)> check_update_{};
};
} // namespace http_request