Skip to content

Commit

Permalink
use better condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Sieb committed May 2, 2024
1 parent b44e25a commit b83d65b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esphome/components/wifi/wifi_component.cpp
Expand Up @@ -694,7 +694,7 @@ void WiFiComponent::retry_connect() {
}

bool WiFiComponent::can_proceed() {
if (!this->has_sta() || this->state_ == WIFI_COMPONENT_STATE_DISABLED || this->state_ == WIFI_COMPONENT_STATE_AP) {
if (!this->has_sta() || this->state_ == WIFI_COMPONENT_STATE_DISABLED || this->ap_setup_) {
return true;
}
return this->is_connected();
Expand Down

0 comments on commit b83d65b

Please sign in to comment.