mirror of
https://github.com/esphome/esphome.git
synced 2025-10-31 23:21:54 +00:00
Merge branch 'integration' into memory_api
This commit is contained in:
@@ -650,8 +650,10 @@ void WiFiComponent::check_scanning_finished() {
|
|||||||
// selected network is hidden, we use the data from the config
|
// selected network is hidden, we use the data from the config
|
||||||
selected.set_hidden(true);
|
selected.set_hidden(true);
|
||||||
selected.set_ssid(config.get_ssid());
|
selected.set_ssid(config.get_ssid());
|
||||||
// don't set BSSID and channel, there might be multiple hidden networks
|
// Clear channel and BSSID for hidden networks - there might be multiple hidden networks
|
||||||
// but we can't know which one is the correct one. Rely on probe-req with just SSID.
|
// but we can't know which one is the correct one. Rely on probe-req with just SSID.
|
||||||
|
selected.set_channel(0);
|
||||||
|
selected.set_bssid(optional<bssid_t>{});
|
||||||
} else {
|
} else {
|
||||||
// selected network is visible, we use the data from the scan
|
// selected network is visible, we use the data from the scan
|
||||||
// limit the connect params to only connect to exactly this network
|
// limit the connect params to only connect to exactly this network
|
||||||
|
|||||||
Reference in New Issue
Block a user