mirror of
https://github.com/esphome/esphome.git
synced 2026-02-28 18:04:19 -07: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:
@@ -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