mirror of
https://github.com/esphome/esphome.git
synced 2026-09-18 10:38:38 +00:00
[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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
7a1448ed19
commit
8aa77c306f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user