Commit ecca50a
Use is None guards for uptime and fxcount; fix outdated comment
Treat fxcount=0 as a valid value rather than "missing": change
`not fxcount` to `fxcount is None` in _check_effects_changed, consistent
with the earlier uptime fix. A device reporting zero effects would
otherwise be forced into a safe-refetch loop on every poll.
Update the inline comment in test_update_skips_presets_when_unchanged
to reflect that the first update now fetches three endpoints
(/json, /json/effects, /presets.json) after mock_json_and_presets
was extended to also stub /json/effects.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 3498651 commit ecca50a
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
873 | 873 | | |
874 | 874 | | |
875 | 875 | | |
876 | | - | |
| 876 | + | |
877 | 877 | | |
878 | | - | |
| 878 | + | |
879 | 879 | | |
880 | 880 | | |
881 | 881 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| |||
0 commit comments