v4.3.3.39 Update NSPanel.ts

- Add: Optional setOn & setOff for HW button with mode 'set'
- Fix: ack for read-only state
This commit is contained in:
Thomas
2024-01-29 11:58:37 +01:00
parent fd6650db50
commit 0f69ee951c
2 changed files with 2 additions and 0 deletions

View File

@@ -6556,6 +6556,7 @@ function HandleButtonEvent(words: any): void {
case 'rgbSingle':
case 'hue':
toggleState(id + '.ON_ACTUAL');
break;
case 'media':
if (!activePage || activePage.type != 'cardMedia') {
if (activePage) throw new Error(`Found channel role media for card: ${activePage.type} not allowed`)

View File

@@ -6556,6 +6556,7 @@ function HandleButtonEvent(words: any): void {
case 'rgbSingle':
case 'hue':
toggleState(id + '.ON_ACTUAL');
break;
case 'media':
if (!activePage || activePage.type != 'cardMedia') {
if (activePage) throw new Error(`Found channel role media for card: ${activePage.type} not allowed`)