1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-18 17:53:47 +01:00

Update esphome/components/network/util.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
J. Nick Koston
2025-10-13 15:41:17 -10:00
committed by GitHub
parent 2881f32b08
commit 6b8d5be528

View File

@@ -100,9 +100,7 @@ const std::string &get_use_address() {
#endif
#if !defined(USE_ETHERNET) && !defined(USE_MODEM) && !defined(USE_WIFI)
// Fallback when no network component is defined (shouldn't happen with USE_NETWORK defined)
static const std::string empty;
return empty;
static_assert(false, "At least one of USE_ETHERNET, USE_MODEM, or USE_WIFI must be defined when USE_NETWORK is set.");
#endif
}