mirror of
https://github.com/esphome/esphome.git
synced 2025-11-18 07:45:56 +00:00
dry
This commit is contained in:
@@ -396,7 +396,7 @@ bool WiFiComponent::sync_selected_sta_to_best_scan_result_() {
|
||||
return false;
|
||||
}
|
||||
|
||||
WiFiAP WiFiComponent::get_sta() {
|
||||
WiFiAP WiFiComponent::get_sta() const {
|
||||
const WiFiAP *config = this->get_selected_sta_();
|
||||
return config ? *config : WiFiAP{};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user