From 8aa77c306f89eb274a0115fe81a1b6f6aa1a5a84 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 21 Feb 2026 17:18:27 -0600 Subject: [PATCH] [socket] Fix docstring and comment accuracy - Update MIN_TCP_SOCKETS comment: api(3) + web_server(5) = 8 typical - Add TCP_LISTEN to consume_sockets docstring Co-Authored-By: Claude Opus 4.6 --- esphome/components/socket/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/socket/__init__.py b/esphome/components/socket/__init__.py index db65635a89..de5c6d2dd6 100644 --- a/esphome/components/socket/__init__.py +++ b/esphome/components/socket/__init__.py @@ -53,7 +53,7 @@ def consume_sockets( Args: value: Number of sockets needed by the component consumer: Name of the component consuming the sockets - socket_type: Type of socket (SocketType.TCP or SocketType.UDP) + socket_type: Type of socket (SocketType.TCP, SocketType.UDP, or SocketType.TCP_LISTEN) Returns: A validator function that records the socket usage