Alerts: a delivery no channel took leaves the cooldown unspent
This commit is contained in:
@@ -141,8 +141,9 @@ def test_a_device_away_after_a_restart_alerts_nobody(tmp_path: Path) -> None:
|
||||
),
|
||||
)
|
||||
|
||||
async def capture(channel: Channel, alert: Alert) -> None:
|
||||
async def capture(channel: Channel, alert: Alert) -> bool:
|
||||
sent.append(alert)
|
||||
return True
|
||||
|
||||
alerts.send = capture # type: ignore[method-assign]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user