feat: add no-op marker tap action

Issue: #381
User-Visible: yes
This commit is contained in:
Sergey Matyunin
2026-08-30 07:48:16 +00:00
committed by claude[bot]
parent 20cd3241c0
commit ea7803230a
39 changed files with 286 additions and 168 deletions
+2
View File
@@ -83,6 +83,8 @@ test('action projection is universal while persisted legacy/default origins stay
assert.equal(projectedTapAction('', 'light'), 'toggle');
assert.equal(projectedTapAction(undefined, 'switch'), 'info');
assert.equal(projectedTapAction('future-action', 'light'), 'info');
assert.equal(projectedTapAction('none', 'light'), 'none');
assert.equal(projectedTapAction('none', 'switch'), 'none');
assert.equal(toggleOriginOf(device({ tapAction: 'toggle' })), 'explicit-toggle');
assert.equal(toggleOriginOf(device({ tapAction: 'cover' })), 'legacy-cover');
assert.equal(toggleOriginOf(device({ tapAction: null, primary: 'light.lamp' })), 'default-light');