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
This commit is contained in:
J. Nick Koston 2023-12-19 09:48:49 -10:00
parent 8871ec0668
commit 47860f455b
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -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,