From 27a068e8b5b825255b293d43d068d4b8ddf17a23 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 17 Nov 2025 21:44:18 -0600 Subject: [PATCH] reduce --- esphome/components/captive_portal/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/captive_portal/__init__.py b/esphome/components/captive_portal/__init__.py index c730624b49..5f7ae32570 100644 --- a/esphome/components/captive_portal/__init__.py +++ b/esphome/components/captive_portal/__init__.py @@ -74,12 +74,12 @@ def _final_validate(config: ConfigType) -> ConfigType: # Register socket needs for DNS server and additional HTTP connections # - 1 UDP socket for DNS server - # - 2 additional TCP sockets for captive portal detection probes + configuration requests + # - 3 additional TCP sockets for captive portal detection probes + configuration requests # (OS captive portal detection makes multiple probe requests that stay in TIME_WAIT, # need headroom for actual user configuration requests) from esphome.components import socket - socket.consume_sockets(3, "captive_portal")(config) + socket.consume_sockets(4, "captive_portal")(config) return config