diff --git a/esphome/components/md5/md5.h b/esphome/components/md5/md5.h index 64448dc056..c0aae62aca 100644 --- a/esphome/components/md5/md5.h +++ b/esphome/components/md5/md5.h @@ -27,9 +27,7 @@ #define MD5_CTX_TYPE LT_MD5_CTX_T #endif -#if defined(USE_ZEPHYR) -#define MD5_CTX_TYPE void * -#endif +#ifndef USE_ZEPHYR namespace esphome { namespace md5 { @@ -70,3 +68,4 @@ class MD5Digest { } // namespace md5 } // namespace esphome +#endif diff --git a/esphome/components/prometheus/prometheus_handler.h b/esphome/components/prometheus/prometheus_handler.h index 9cf098e990..f5e49a1419 100644 --- a/esphome/components/prometheus/prometheus_handler.h +++ b/esphome/components/prometheus/prometheus_handler.h @@ -5,7 +5,6 @@ #include #include "esphome/components/web_server_base/web_server_base.h" -#ifdef USE_NETWORK #include "esphome/core/component.h" #include "esphome/core/controller.h" #include "esphome/core/entity_base.h"