Skip to content

Commit

Permalink
parse deviceid
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Dec 17, 2023
1 parent 1d48524 commit 543bd9a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"common": {
"tier": 2,
"name": "tedee",
"version": "0.2.0",
"version": "0.3.0",
"news": {
"0.2.0": {
"0.3.0": {
"en": "initial release",
"de": "Erstveröffentlichung",
"ru": "Начальная версия",
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class Tedee extends utils.Adapter {
this.log.info('Webhook connected successfully');
}
if (req.body.data) {
const deviceId = req.body.data.deviceId;
const deviceId = req.body.data.deviceId.toString().replace(this.FORBIDDEN_CHARS, '_');
if (deviceId) {
this.json2iob.parse(deviceId, req.body.data, { forceIndex: true, states: this.states });
} else {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.tedee",
"version": "0.2.0",
"version": "0.3.0",
"description": "Adapter for Tedee Locks",
"author": {
"name": "TA2k",
Expand Down

0 comments on commit 543bd9a

Please sign in to comment.