B3.3 follow-up: drop _unitView mirror; use UnitPolicy property bags directly

Same as MGC — UnitPolicy property bags replace the manual _unitView/
unitPolicyView reassignment. specificClass.js 400→377. 196/196 tests
still pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
znetsixe
2026-05-11 17:13:20 +02:00
parent 9e8463b41d
commit 84126e9130
5 changed files with 15 additions and 38 deletions

View File

@@ -106,7 +106,7 @@ test('source.getStatusBadge shows warning when pressure inputs are not initializ
state: { getCurrentState: () => 'operational', getCurrentPosition: () => 50 },
pressureInit: { getStatus: () => ({ initialized: false, hasUpstream: false, hasDownstream: false, hasDifferential: false }) },
measurements: { type() { return { variant() { return { position() { return { getCurrentValue() { return 0; } }; } }; } }; } },
unitPolicyView: { output: { flow: 'm3/h' } },
unitPolicy: { output: { flow: 'm3/h' } },
logger: { error: () => {} },
};
// Import the buildStatusBadge helper directly — it's the same code the