Backoff MQTT failures all the way up to 1hr on connection failure, and also don't multi-toast on connection error. Closes #231.

This commit is contained in:
Jack Kingsman
2026-04-28 12:00:03 -07:00
parent 2c1279eb9e
commit 761fd82da6
5 changed files with 13 additions and 8 deletions
+2 -2
View File
@@ -342,8 +342,8 @@ class TestConnectionLoop:
assert sleep_args[0] == _BACKOFF_MIN
assert sleep_args[1] == _BACKOFF_MIN * 2
assert sleep_args[2] == _BACKOFF_MIN * 4
# Fourth should be capped at _backoff_max (5*8=40 > 30)
assert sleep_args[3] == MqttPublisher._backoff_max
# Fourth is still doubling (5*8=40), not yet at _backoff_max
assert sleep_args[3] == _BACKOFF_MIN * 8
@pytest.mark.asyncio
async def test_waits_for_settings_when_unconfigured(self):