Skip to content

Commit

Permalink
doc that sentry IOBROKER-KECONTACT-2 is solved
Browse files Browse the repository at this point in the history
  • Loading branch information
Sneak-L8 committed Jul 23, 2021
1 parent 9409744 commit 40c488f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ An extra checkbox is used to specified whether wallbox power is included (in thi

### 1.2.1 (2021-07-20)
* (Sneak-L8) support X1 contact of charging station to switch photovoltaics automatic
* (Sneak-L8) prevent a crash case (Sentry IOBROKER-KECONTACT-2)

### 1.2.0 (2021-06-07)
* (Sneak-L8) support for compact mode
Expand Down
5 changes: 3 additions & 2 deletions kecontact.js
Original file line number Diff line number Diff line change
Expand Up @@ -1037,11 +1037,12 @@ function getWallboxType() {
}

}
adapter.log.error("unknown wallbox type " + type);
const msg = "unknown wallbox type " + type;
adapter.log.error(msg);
if (adapter.supportsFeature && adapter.supportsFeature('PLUGINS')) {
const sentryInstance = adapter.getPluginInstance('sentry');
if (sentryInstance) {
sentryInstance.getSentryObject().captureException("unknown wallbox type " + type);
sentryInstance.getSentryObject().captureException(msg);
}
}
return 0;
Expand Down

0 comments on commit 40c488f

Please sign in to comment.