From 47860f455bcb5bc188cda3d3c85dd406615081ab Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 19 Dec 2023 09:48:49 -1000 Subject: [PATCH] Make failure to increase the recv buffer size non-fatal We now try to set the buffer to 2097152, 1048576, 524288, 262144, 131072 before giving up and logging a warning --- aioesphomeapi/connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aioesphomeapi/connection.py b/aioesphomeapi/connection.py index 9676bab..14403b7 100644 --- a/aioesphomeapi/connection.py +++ b/aioesphomeapi/connection.py @@ -413,8 +413,8 @@ class APIConnection: if new_buffer_size <= MIN_BUFFER_SIZE: _LOGGER.warning( "%s: Unable to increase the socket receive buffer size to %s; " - "The connection may not be unstable if the ESPHome device " - "sends at volume (ex. a Bluetooth proxy or camera): %s", + "The connection may unstable if the ESPHome device sends " + "data at volume (ex. a Bluetooth proxy or camera): %s", self.log_name, new_buffer_size, err,