Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion v2/crates/homecore-server/ui/js/mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,11 @@ const SEEDS = [
warnings: ['stale firmware version (0.6.9 < 0.7.3)', 'offline > 1h'],
},
];

const SEED_MAP = new Map(SEEDS.map((s) => [s.device_id, s]));

export function seeds() { return SEEDS.map((s) => ({ ...s })); }
export function seed(id) { return SEEDS.find((s) => s.device_id === id) || null; }
export function seed(id) { return SEED_MAP.get(id) || null; }

// ── ESP32 node warnings (Β§4.1) ──────────────────────────────────────
export function esp32Warnings() {
Expand Down
Loading