e8bcf04b46
When a Zigbee device was approved (PendingDevice.status=approved + Node created) and the user later deleted the canvas Node, the PendingDevice row was left orphaned as approved. On re-import _persist_pending_import found the existing row, refreshed its fields but left status=approved, so it never reappeared in the Pending list (which filters status==pending) — the import reported devices found but Pending stayed empty. Reset such orphaned approved rows back to pending on re-import. Hidden devices stay hidden (explicit user intent). Adds regression tests for both revive-approved and keep-hidden paths. ha-relevant: yes