From 6c26f75a770d6ec94f736736888700f42e9aba11 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 21 Sep 2025 15:56:05 -0600 Subject: [PATCH] preen --- esphome/components/md5/md5.h | 1 + esphome/components/sha256/sha256.h | 1 + 2 files changed, 2 insertions(+) diff --git a/esphome/components/md5/md5.h b/esphome/components/md5/md5.h index 73d99205c0..b0da2c0a3b 100644 --- a/esphome/components/md5/md5.h +++ b/esphome/components/md5/md5.h @@ -38,6 +38,7 @@ class MD5Digest : public HashBase { /// Add bytes of data for the digest. void add(const uint8_t *data, size_t len) override; + using HashBase::add; // Bring base class overload into scope /// Compute the digest, based on the provided data. void calculate() override; diff --git a/esphome/components/sha256/sha256.h b/esphome/components/sha256/sha256.h index 004b1e50fc..bb089bc314 100644 --- a/esphome/components/sha256/sha256.h +++ b/esphome/components/sha256/sha256.h @@ -29,6 +29,7 @@ class SHA256 : public esphome::HashBase { void init() override; void add(const uint8_t *data, size_t len) override; + using HashBase::add; // Bring base class overload into scope void add(const std::string &data) { this->add((const uint8_t *) data.c_str(), data.length()); } void calculate() override;