Swap Device in Apps still leaves the old one somewhere in the Room Lightning app

  • I swapped a physical device with a linked one
  • According to the UI both on the device page and in the app, the swap was successful – new device is everywhere, old device is nowhere to be found.
  • I've deleted the old device.
  • The Room Lighting automation is broken with NPE in the log: java.lang.NullPointerException: Cannot get property 'currentSwitch' on null object on line 3183 (method motionStaysHandler)

@bravenel can you please take a look?