[iobroker] add defAck flag to StateCommon (#45213)

This commit is contained in:
AlCalzone 2020-06-12 20:22:10 +02:00 committed by GitHub
parent aeb9e5ab33
commit d3ce8bd4d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -91,8 +91,6 @@ declare global {
max?: number;
/** unit of the value */
unit?: string;
/** the default value */
def?: any;
/** description of this state */
desc?: string;
@ -103,6 +101,11 @@ declare global {
/** role of the state (used in user interfaces to indicate which widget to choose) */
role: string;
/** the default value */
def?: any;
/** the default status of the ack flag */
defAck?: boolean;
/** Configures this state as an alias for another state */
alias?: {
/** The target state id */

View File

@ -214,6 +214,8 @@ adapter.setObject('id', {
read: true,
write: false,
role: 'some role',
def: [],
defAck: false,
},
native: {},
protectedNative: ['none'],