Skip to content

Commit

Permalink
add 4 missing entries to attribute definition
Browse files Browse the repository at this point in the history
  • Loading branch information
DutchmanNL committed Nov 16, 2023
1 parent e6ebd10 commit d403ee1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ When the adapter crashes or any other Code error happens, this error message tha
Placeholder for the next version (at the beginning of the line):
### **WORK IN PROGRESS**
-->
### **WORK IN PROGRESS**
### **WORK IN PROGRESS** - Stable release candidate
* (DutchmanNL) Add missing definitions to ensure correct creation of states, resolves #39
* (DutchmanNL) Adjust log level for Unknown Message from error to debug, resolves #39
* (DutchmanNL) Reduce selection dropdown in admin config to printer series instead of a specific printer type
Expand Down
20 changes: 20 additions & 0 deletions lib/state_attr.js
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,26 @@ const state_attrb = {
'name': 'xxxx',
'type': 'string',
'role': 'state'
},
'hmsErrors': {
'name': 'HMS error occurred',
'type': 'boolean',
'role': 'state'
},
'hmsErrorCount': {
'name': 'HMS error counts',
'type': 'number',
'role': 'state'
},
't_utc': {
'name': 'UTC time stamp',
'type': 'number',
'role': 'state'
},
'ams_rfid_status': {
'name': 'AMS RFID status',
'type': 'number',
'role': 'state'
}
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@types/mocha": "^10.0.1",
"@types/node": "^20.8.10",
"@types/proxyquire": "^1.3.28",
"@types/sinon": "^10.0.15",
"@types/sinon": "^17.0.1",
"@types/sinon-chai": "^3.2.11",
"chai": "^4.3.8",
"chai-as-promised": "^7.1.1",
Expand Down

0 comments on commit d403ee1

Please sign in to comment.