mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-19 22:24:15 +01:00
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:
@@ -6556,6 +6556,7 @@ function HandleButtonEvent(words: any): void {
|
|||||||
case 'rgbSingle':
|
case 'rgbSingle':
|
||||||
case 'hue':
|
case 'hue':
|
||||||
toggleState(id + '.ON_ACTUAL');
|
toggleState(id + '.ON_ACTUAL');
|
||||||
|
break;
|
||||||
case 'media':
|
case 'media':
|
||||||
if (!activePage || activePage.type != 'cardMedia') {
|
if (!activePage || activePage.type != 'cardMedia') {
|
||||||
if (activePage) throw new Error(`Found channel role media for card: ${activePage.type} not allowed`)
|
if (activePage) throw new Error(`Found channel role media for card: ${activePage.type} not allowed`)
|
||||||
|
|||||||
@@ -6556,6 +6556,7 @@ function HandleButtonEvent(words: any): void {
|
|||||||
case 'rgbSingle':
|
case 'rgbSingle':
|
||||||
case 'hue':
|
case 'hue':
|
||||||
toggleState(id + '.ON_ACTUAL');
|
toggleState(id + '.ON_ACTUAL');
|
||||||
|
break;
|
||||||
case 'media':
|
case 'media':
|
||||||
if (!activePage || activePage.type != 'cardMedia') {
|
if (!activePage || activePage.type != 'cardMedia') {
|
||||||
if (activePage) throw new Error(`Found channel role media for card: ${activePage.type} not allowed`)
|
if (activePage) throw new Error(`Found channel role media for card: ${activePage.type} not allowed`)
|
||||||
|
|||||||
Reference in New Issue
Block a user