Skip to content

Commit

Permalink
add new constraints check
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Jan 11, 2024
1 parent 4ba64c2 commit de41d9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ class Homeconnect extends utils.Adapter {
native: {},
});
this.log.debug('Set default value');
if (option.constraints.default) {
if (option.constraints && option.constraints.default) {
let value = option.constraints.default;
if (option.constraints.default > option.constraints.max) {
value = option.constraints.max;
Expand Down

0 comments on commit de41d9c

Please sign in to comment.