Commit 7a366a2
committed
test: make characterization snapshot deterministic across machines
The spool sensor computes its 'used_percentage' attribute only in
_handle_coordinator_update(), not in the constructor. Whether that
handler had fired by the time the state snapshot was captured depended
on coordinator-update timing, so the attribute was present locally but
absent on CI — making test_all_entities_snapshot flaky (CI failure on
HA 2026.5.4 with otherwise-identical package versions).
Force one coordinator refresh in the setup_integration fixture after
setup so every entity's update handler runs deterministically before
the snapshot is taken. The committed snapshot is unchanged (it already
reflected the post-update state).1 parent b7058f8 commit 7a366a2
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
202 | 210 | | |
203 | 211 | | |
204 | 212 | | |
| 213 | + | |
| 214 | + | |
205 | 215 | | |
0 commit comments