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:
@@ -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
|
||||
|
Reference in New Issue
Block a user