1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-26 23:22:21 +01:00

Reduce API component flash usage by consolidating error logging (#9468)

This commit is contained in:
J. Nick Koston
2025-07-15 15:15:23 -10:00
committed by GitHub
parent b5be45273f
commit bfaf2547e3
2 changed files with 13 additions and 27 deletions

View File

@@ -426,7 +426,7 @@ bool APIServer::save_noise_psk(psk_t psk, bool make_active) {
ESP_LOGD(TAG, "Noise PSK saved");
if (make_active) {
this->set_timeout(100, [this, psk]() {
ESP_LOGW(TAG, "Disconnecting all clients to reset connections");
ESP_LOGW(TAG, "Disconnecting all clients to reset PSK");
this->set_noise_psk(psk);
for (auto &c : this->clients_) {
c->send_message(DisconnectRequest());