Repository navigation
Commit 4cfd69e
Keep the requested mode after set_mode() (#96)
* Keep the requested mode after set_mode()
OpenRGB 1.0 applies SDK writes on a per-controller thread but answers
REQUEST_CONTROLLER_DATA right away, so the update() in set_mode() can
return the previous mode. set_color() and set_colors() then dispatch on
that stale mode, and when it has no colors (e.g. Off) they send nothing.
Home Assistant hits this every time it turns a light on from Off.
See https://gitlab.com/CalcProgrammer1/OpenRGB/-/work_items/5924
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bs25H1VRVY917EZg6GxZhr
* Poll for mode change confirmation in set_mode()
* Clean up comments in orgb.py
Removed comments about OpenRGB 1.0+ behavior and server response.
* Warn when the mode change doesn't land in set_mode()
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Jack Hughes <jackthughes@yahoo.com>1 parent 8651c0d commit 4cfd69e
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
333 | 334 | | |
334 | 335 | | |
335 | 336 | | |
336 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
337 | 347 | | |
338 | 348 | | |
339 | 349 | | |
| |||
0 commit comments