test: close device presentation review findings

Issue: #267
User-Visible: no
This commit is contained in:
Matysh
2026-08-27 22:41:46 +03:00
parent 8b0ad08db2
commit 118062bb8c
10 changed files with 145 additions and 92 deletions
+1 -1
View File
@@ -585,7 +585,7 @@ export function resolveDevicePresentation(
const haDisabled = status?.kind === 'ha_disabled';
const orphaned = status?.kind === 'orphaned';
const lifecycle: BindingPresentationLifecycle = haDisabled ? 'ha_disabled'
: orphaned ? 'orphaned' : status?.kind === 'unverified' ? 'unverified' : 'active';
: orphaned ? 'orphaned' : 'active';
const userHidden = d.userHidden === true || d.marker?.hidden === true;
const combined = combineVisualSamples(sources.samples);
const lockSource = sources.visualSources.find((source) => source.eid.startsWith('lock.'));