nightscout / Trio

MIT License
45 stars 125 forks source link

Home View shows "No Pod" or "Signal Loss" despite insulin delivery system removal #283

Closed dnzxy closed 3 weeks ago

dnzxy commented 3 weeks ago

Describe the bug

This issue became apparent while testing #263 and #277 . When removing a pump, the Home View shows "No Pod" or "Signal Loss" despite removing the insulin delivery system via the pump manager UI.

To Reproduce

Steps to reproduce the behavior:

  1. Remove pod/pump via pump manager UI
  2. Go back to home view
  3. Pump status section shows "No Pod" or "Signal Loss"
  4. Tapping on that notification takes user to pump manager UI to select a new insulin delivery device

Expected behavior

When removing the pump, Home View must display "Add Pump", because it was removed.

Technical Details

This is connected to not properly observing updates of DeviceManager/PumpStatusHighlight when removing the delivery system.