mirror of
https://github.com/esphome/esphome.git
synced 2026-09-14 16:48:40 +00:00
Update esphome/components/wifi/wifi_component.cpp
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com>
This commit is contained in:
co-authored by
Jonathan Swoboda
parent
60cab9b784
commit
7b05ad690b
@@ -2129,10 +2129,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;
|
||||
|
||||
Reference in New Issue
Block a user