From 78bbb62bf89179b62e0a265b6f07b0e517426ca5 Mon Sep 17 00:00:00 2001 From: Tomasz Duda Date: Thu, 15 Aug 2024 09:32:02 +0200 Subject: [PATCH] small fix --- esphome/components/md5/md5.h | 5 ++--- esphome/components/prometheus/prometheus_handler.h | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) 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"