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

host platform

This commit is contained in:
J. Nick Koston
2025-10-13 15:52:00 -10:00
parent 6b8d5be528
commit c5076e69f0

View File

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