Merge branch 'wifi-cache-is-connected' into integration

This commit is contained in:
J. Nick Koston
2026-03-05 07:33:53 -10:00
+1 -4
View File
@@ -2130,10 +2130,7 @@ bool WiFiComponent::is_connected_() const {
this->wifi_sta_connect_status_() == WiFiSTAConnectStatus::CONNECTED && !this->error_from_callback_;
}
void WiFiComponent::update_connected_state_() {
bool connected = this->is_connected_();
if (connected != this->connected_) {
this->connected_ = connected;
}
this->connected_ = this->is_connected_();
}
void WiFiComponent::set_power_save_mode(WiFiPowerSaveMode power_save) {
this->power_save_ = power_save;