diff --git a/esphome/components/sha256/sha256.cpp b/esphome/components/sha256/sha256.cpp index 3788c28741..a0f82b78ef 100644 --- a/esphome/components/sha256/sha256.cpp +++ b/esphome/components/sha256/sha256.cpp @@ -4,7 +4,7 @@ #ifdef USE_ESP32 #include "mbedtls/sha256.h" -#elif defined(USE_ESP8266) || defined(USE_RP2040) || defined(USE_LIBRETINY) +#elif defined(USE_ARDUINO) #include #endif @@ -45,7 +45,7 @@ void SHA256::calculate() { mbedtls_sha256_finish(&this->ctx_->ctx, this->ctx_->hash); } -#elif defined(USE_ESP8266) || defined(USE_RP2040) || defined(USE_LIBRETINY) +#elif defined(USE_ARDUINO) struct SHA256::SHA256Context { ::SHA256 sha;