Solaar/lib
grechmarlon e844d0611d Fix crash writing per-key lighting from the CLI
PerKeyLighting.write_key_value dereferenced self._value without the
initialization guard that the base Settings.write_key_value has. On a
fresh CLI invocation (solaar config <dev> per-key-lighting <key> <color>)
nothing has read the setting yet, so _value is still None and the write
crashes with 'NoneType' object does not support item assignment.
The GUI never hits this because it reads all settings on attach.

Initialize via read(), which for this write-only 0x8081 setting loads
the persisted map or fabricates the all-"No change" sentinel map.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 20:18:38 +02:00
..
hid_parser Fix duplicate class field typo in HID parser data 2026-05-05 14:43:03 -04:00
hidapi G522 LIGHTSPEED headphones support 2026-05-21 10:13:00 -04:00
keysyms keysymdef: Rename key symbols 2024-10-11 07:42:38 -04:00
logitech_receiver Fix crash writing per-key lighting from the CLI 2026-06-11 20:18:38 +02:00
solaar ui: don't use old settings when reusing sboxes 2026-06-09 19:35:00 -04:00