mirror of
https://github.com/esphome/esphome.git
synced 2026-09-11 23:37:34 +00:00
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:
@@ -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"}))
|
||||
|
||||
Reference in New Issue
Block a user