mirror of
https://github.com/esphome/esphome.git
synced 2025-08-02 08:27:47 +00:00
Revert "Revert "missed one""
This reverts commit d40fcb324ca2568931b8ab5a3c3255f090fc3132.
This commit is contained in:
parent
d40fcb324c
commit
ee7bda74c0
@ -428,7 +428,8 @@ bool APIServer::save_noise_psk(psk_t psk, bool make_active) {
|
|||||||
ESP_LOGW(TAG, "Disconnecting all clients to reset PSK");
|
ESP_LOGW(TAG, "Disconnecting all clients to reset PSK");
|
||||||
this->set_noise_psk(psk);
|
this->set_noise_psk(psk);
|
||||||
for (auto &c : this->clients_) {
|
for (auto &c : this->clients_) {
|
||||||
c->send_message(DisconnectRequest());
|
DisconnectRequest req;
|
||||||
|
c->send_message(req, DisconnectRequest::MESSAGE_TYPE);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user