reform-power-daemon reverts user-configured keyboard backlight on state change

If I set the keyboard backlight on my Pocket Reform using fn+trackball, then when the power state changes (i.e., I plug in or unplug USB-C PD), reform-power-daemon sets the backlight brightness to a predefined value, undoing my manual changes.

To reproduce:

  • Plug in the Pocket Reform to USB-C PD and wait for journalctl -u reform-power-daemon -f to report Charging
  • Use fn+trackball to turn the keyboard backlight completely off
  • Unplug USB-C PD power
  • Wait up to 5 seconds until the above journalctl reports that reform-power-daemon has noticed the power change status
  • Observe that the keyboard backlight is now on, but dim

The same happens when changing from Discharging to Charging.