From 978233210888f9bc872a15f5c007980731c76b7e Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 4 Mar 2026 08:57:25 -1000 Subject: [PATCH] force it --- esphome/components/network/util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esphome/components/network/util.h b/esphome/components/network/util.h index c50dff870f..4b700fe74c 100644 --- a/esphome/components/network/util.h +++ b/esphome/components/network/util.h @@ -2,6 +2,7 @@ #include "esphome/core/defines.h" #ifdef USE_NETWORK #include +#include "esphome/core/helpers.h" #include "ip_address.h" #ifdef USE_ETHERNET @@ -23,7 +24,7 @@ namespace esphome::network { // an AP that uses a previous interface for NAT). /// Return whether the node is connected to the network (through wifi, eth, ...) -inline bool is_connected() { +ESPHOME_ALWAYS_INLINE inline bool is_connected() { #ifdef USE_ETHERNET if (ethernet::global_eth_component != nullptr && ethernet::global_eth_component->is_connected()) return true;