Marc Billow
6ee60beae9
Make holding the session across a sequence the caller's choice
...
Holding _session_lock for a whole write sequence buys certainty about what
the appliance saw and when, but blocks every poll and entity write for the
sequence's full length -- up to 10 x 30s. Which of those matters more
depends on what is being probed, so it is now hold_session_lock on
async_raw_write_sequence and a field on the service, defaulting to the
holding behavior that shipped.
Off, the lock is taken per write and released across the settle waits, so
entities keep updating through a long sequence. Exactly one of the two
context managers is ever the real lock -- asyncio.Lock isn't reentrant.
Tests assert the lock's actual state during the settle wait in both modes,
rather than just that the flag is accepted.
2026-08-07 23:46:28 +00:00
..
2026-08-07 16:38:09 +00:00
2026-08-07 22:08:28 +00:00
2026-06-30 16:32:37 -05:00
2026-08-02 23:56:38 +00:00
2026-08-02 23:56:38 +00:00
2026-08-03 00:03:08 +00:00
2026-08-03 00:03:08 +00:00
2026-08-02 23:56:38 +00:00
2026-08-04 15:25:12 +09:00
2026-08-02 23:56:38 +00:00
2026-08-04 14:44:54 +09:00
2026-08-02 23:56:38 +00:00
2026-08-03 00:14:58 +00:00
2026-08-02 23:56:38 +00:00
2026-08-02 23:56:38 +00:00
2026-08-07 15:52:46 +00:00
2026-08-06 12:04:46 +02:00
2026-08-07 16:38:09 +00:00
2026-08-07 16:38:09 +00:00
2026-08-03 19:07:03 +00:00
2026-08-03 00:03:08 +00:00
2026-08-07 16:38:09 +00:00
2026-08-04 14:47:42 +09:00
2026-08-02 23:56:38 +00:00
2026-08-03 00:03:08 +00:00
2026-08-03 00:14:58 +00:00
2026-08-02 23:56:38 +00:00
2026-08-03 19:22:06 +00:00
2026-08-02 23:56:38 +00:00
2026-08-02 23:56:38 +00:00
2026-08-02 23:56:38 +00:00
2026-08-02 23:56:38 +00:00
2026-08-03 00:03:08 +00:00
2026-08-02 23:56:38 +00:00
2026-08-02 23:56:38 +00:00
2026-08-03 00:03:08 +00:00
2026-08-02 23:56:38 +00:00
2026-08-03 18:59:22 +00:00
2026-08-02 23:56:38 +00:00
2026-08-02 23:56:38 +00:00
2026-08-03 19:32:44 +00:00
2026-08-03 19:32:44 +00:00
2026-08-03 19:38:57 +00:00
2026-08-02 23:56:38 +00:00
2026-08-02 23:56:38 +00:00
2026-08-04 14:47:42 +09:00
2026-08-03 00:03:08 +00:00
2026-08-03 00:11:05 +00:00
2026-08-02 23:56:38 +00:00
2026-08-03 19:24:59 +00:00
2026-08-02 23:56:38 +00:00
2026-08-07 15:52:46 +00:00
2026-08-07 14:50:24 +00:00
2026-08-03 00:11:05 +00:00
2026-08-04 14:47:42 +09:00
2026-08-03 00:11:05 +00:00
2026-08-03 00:14:58 +00:00
2026-08-03 00:03:08 +00:00
2026-08-02 23:56:38 +00:00
2026-08-03 00:11:05 +00:00
2026-08-03 00:03:08 +00:00
2026-08-07 15:52:46 +00:00
2026-08-03 00:11:05 +00:00
2026-08-02 23:56:38 +00:00
2026-08-03 00:03:08 +00:00
2026-08-03 00:03:08 +00:00
2026-08-02 23:56:38 +00:00
2026-08-02 23:56:38 +00:00
2026-08-02 23:56:38 +00:00
2026-08-07 15:52:46 +00:00
2026-08-02 23:56:38 +00:00
2026-08-02 23:56:38 +00:00
2026-08-02 23:56:38 +00:00
2026-08-03 00:11:05 +00:00
2026-08-03 00:11:05 +00:00
2026-08-07 23:46:28 +00:00
2026-08-03 00:11:05 +00:00
2026-08-03 00:11:05 +00:00
2026-08-02 23:56:38 +00:00
2026-08-03 00:03:08 +00:00
2026-08-03 00:11:05 +00:00
2026-08-03 00:03:08 +00:00
2026-08-02 23:56:38 +00:00