mirror of
https://github.com/esphome/esphome.git
synced 2025-10-18 17:53:47 +01:00
Merge branch 'get_use_address' into integration
This commit is contained in:
@@ -100,9 +100,7 @@ const std::string &get_use_address() {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(USE_ETHERNET) && !defined(USE_MODEM) && !defined(USE_WIFI)
|
#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_assert(false, "At least one of USE_ETHERNET, USE_MODEM, or USE_WIFI must be defined when USE_NETWORK is set.");
|
||||||
static const std::string empty;
|
|
||||||
return empty;
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user