Skip to content

Commit

Permalink
set min interval
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Jun 11, 2024
1 parent 339fdb6 commit 015ed1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ class Vesync extends utils.Adapter {
async onReady() {
// Reset the connection indicator during startup
this.setState('info.connection', false, true);
if (this.config.interval < 0.5) {
this.log.info('Set interval to minimum 0.5');
this.config.interval = 0.5;
if (this.config.interval < 0.1) {
this.log.info('Set interval to minimum 0.1');
this.config.interval = 0.1;
}
if (!this.config.username || !this.config.password) {
this.log.error('Please set username and password in the instance settings');
Expand Down

0 comments on commit 015ed1d

Please sign in to comment.