Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Grizzelbee committed Jun 19, 2024
1 parent 2bb58f5 commit 49a4aca
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 @@ -1338,11 +1338,11 @@ class dysonAirPurifier extends utils.Adapter {
}
});
// Sets the interval for status updates
adapterLog.info(
`Starting Polltimer with a ${adapter.config.pollInterval} seconds interval for device ${thisDevice.Serial}.`
);
// start refresh scheduler with interval from adapters config
if (adapter.config.pollInterval > 0) {
adapterLog.info(
`Starting Polltimer with a ${adapter.config.pollInterval} seconds interval for device ${thisDevice.Serial}.`
);
thisDevice.updateIntervalHandle = setInterval(()=> {
adapter.pollDeviceInfo(thisDevice, adapterLog, '@ regular schedule');
}, adapter.config.pollInterval * 1000);
Expand Down

0 comments on commit 49a4aca

Please sign in to comment.