mirror of
https://github.com/esphome/esphome.git
synced 2026-09-13 08:17:34 +00:00
Merge remote-tracking branch 'upstream/inline-network-is-connected' into integration
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
namespace esphome::network {
|
||||
|
||||
// The order of the components is important: WiFi should come after any possible main interfaces (it may be used as
|
||||
// an AP that use a previous interface for NAT).
|
||||
// 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() {
|
||||
@@ -45,7 +45,7 @@ inline bool is_connected() {
|
||||
#endif
|
||||
|
||||
#ifdef USE_HOST
|
||||
return true; // Assume its connected
|
||||
return true; // Assume it's connected
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user