From 97fbaf8818ae6232e08c552ceef7e1a061f5c84f Mon Sep 17 00:00:00 2001 From: archipelago Date: Wed, 22 Jul 2026 04:54:20 -0400 Subject: [PATCH] fix(pine): node-status mesh_message is {} instead of null when empty HA's seeded REST sensor reads attributes via json_attributes_path "$.mesh_message"; a null there makes HA log a "JSON result was not a dictionary" warning on every 30s scan. Co-Authored-By: Claude Fable 5 --- core/archipelago/src/api/rpc/pine_status.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/archipelago/src/api/rpc/pine_status.rs b/core/archipelago/src/api/rpc/pine_status.rs index 5e923a93..efe79851 100644 --- a/core/archipelago/src/api/rpc/pine_status.rs +++ b/core/archipelago/src/api/rpc/pine_status.rs @@ -136,7 +136,10 @@ impl RpcHandler { "bitcoin": bitcoin, "mesh": mesh, "lightning": lightning, - "mesh_message": mesh_message, + // Always an object: HA's REST sensor reads attributes via + // json_attributes_path "$.mesh_message", and a null there makes + // HA log a "JSON result was not a dictionary" warning every scan. + "mesh_message": mesh_message.unwrap_or_else(|| json!({})), }) } }