mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-22 22:18:38 +01:00
DEV 4.4.0.4 - Update NSPanelTs.ts
-fix setObject hiddenCards
This commit is contained in:
@@ -1456,7 +1456,7 @@ async function InitConfigParameters() {
|
|||||||
// Trigger DP for hiddenCards (with hiddenByTrigger)
|
// Trigger DP for hiddenCards (with hiddenByTrigger)
|
||||||
if (existsObject(NSPanel_Path + 'Config.hiddenCards') == false) {
|
if (existsObject(NSPanel_Path + 'Config.hiddenCards') == false) {
|
||||||
await createStateAsync(NSPanel_Path + 'Config.hiddenCards', false, { type: 'boolean', write: true });
|
await createStateAsync(NSPanel_Path + 'Config.hiddenCards', false, { type: 'boolean', write: true });
|
||||||
setObject(AliasPath + 'Config.Screensaver.hiddenCards', { type: 'channel', common: { role: 'socket', name: 'HiddenCrads' }, native: {} });
|
setObject(AliasPath + 'Config.hiddenCards', { type: 'channel', common: { role: 'socket', name: 'hiddenCards' }, native: {} });
|
||||||
await createAliasAsync(AliasPath + 'Config.hiddenCards.ACTUAL', NSPanel_Path + 'Config.hiddenCards', true, <iobJS.StateCommon>{
|
await createAliasAsync(AliasPath + 'Config.hiddenCards.ACTUAL', NSPanel_Path + 'Config.hiddenCards', true, <iobJS.StateCommon>{
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
role: 'switch',
|
role: 'switch',
|
||||||
|
|||||||
Reference in New Issue
Block a user