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

Refactor duplicate socket read error handling in API frame helper (#9370)

This commit is contained in:
J. Nick Koston
2025-07-07 15:39:13 -05:00
committed by GitHub
parent e58c793da2
commit 3976fd02ea
2 changed files with 31 additions and 44 deletions

View File

@@ -176,6 +176,9 @@ class APIFrameHelper {
// Common initialization for both plaintext and noise protocols
APIError init_common_();
// Helper method to handle socket read results
APIError handle_socket_read_result_(ssize_t received);
};
#ifdef USE_API_NOISE