Apply the dial delay the same way at boot and after a disconnect, tell socket create and setblocking failures apart, and cap the delay so the wait always elapses

This commit is contained in:
J. Nick Koston
2026-09-04 12:42:07 +02:00
parent 9c4a08aaad
commit 0a74cb4e89
3 changed files with 7 additions and 7 deletions
@@ -66,7 +66,7 @@ def test_outgoing_connection_bare_block(
def test_outgoing_connection_delay_bounded(
set_core_config: SetCoreConfigCallable,
) -> None:
"""A delay past the device's uint32 milliseconds is rejected, not wrapped."""
"""A delay past half the uint32 millisecond range is rejected, not wrapped."""
set_core_config(PlatformFramework.ESP32_IDF, platform_data=ESP32_PLATFORM_DATA)
with pytest.raises(cv.Invalid, match="value must be at most"):
CONFIG_SCHEMA(_api_config({"delay": "60d"}))