Update esphome/components/socket/__init__.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
J. Nick Koston
2026-02-21 17:18:21 -06:00
committed by GitHub
co-authored by Copilot
parent bfde66f7f4
commit 7a1448ed19
+1 -1
View File
@@ -23,7 +23,7 @@ KEY_SOCKET_CONSUMERS_TCP_LISTEN = "socket_consumers_tcp_listen"
# Recommended minimum socket counts to ensure headroom.
# Platforms should apply these (or their own) on top of get_socket_counts().
# TCP: api(3) = 3 base, +7 headroom for web_server(5)/ota-transfer/other.
# TCP: Typical setup: api(3) + web_server(5) = 8 registered, +2 headroom for ota-transfer/other = 10 total.
# UDP: dhcp(1) + dns(1) + mdns(2) + wake_loop(1) = 5 base, +3 headroom.
MIN_TCP_SOCKETS = 10
MIN_UDP_SOCKETS = 8