mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-02 12:49:56 +00:00
@@ -2316,11 +2316,24 @@ const MUTANT_DEFINITIONS = [
|
||||
+ 'controllers; excluding those siblings restores the field defect (#251)',
|
||||
patches: [{
|
||||
file: 'src/device-presentation.ts',
|
||||
find: ' const live = (d.entities || []).some((eid) => {',
|
||||
replace: " const live = (d.entities || []).filter((eid) => !eid.startsWith('sensor.') "
|
||||
find: ' const live = ownEntities.some((eid) => {',
|
||||
replace: " const live = ownEntities.filter((eid) => !eid.startsWith('sensor.') "
|
||||
+ "&& !eid.startsWith('update.')).some((eid) => {",
|
||||
}],
|
||||
},
|
||||
{
|
||||
id: 'entityless-active-controller-stays-available',
|
||||
guard: 'npx tsc -p tsconfig.test.json && node scripts/fix-test-build.mjs '
|
||||
+ '&& node --test --test-name-pattern="issue 318 keeps an active entityless physical controller available" '
|
||||
+ 'test/device-presentation.test.mjs',
|
||||
because: 'an active physical controller whose HA device exposes no own entities has no offline '
|
||||
+ 'evidence; its face must remain available while controls decide working versus neutral (#318)',
|
||||
patches: [{
|
||||
file: 'src/device-presentation.ts',
|
||||
find: " if (activeEntitylessDevice) return 'available';",
|
||||
replace: " if (activeEntitylessDevice) return 'unavailable';",
|
||||
}],
|
||||
},
|
||||
{
|
||||
id: 'wireless-controller-loses-filtered-target-role',
|
||||
guard: 'npx tsc -p tsconfig.test.json && node scripts/fix-test-build.mjs '
|
||||
|
||||
Reference in New Issue
Block a user