Skip to content

Commit

Permalink
fix to async
Browse files Browse the repository at this point in the history
  • Loading branch information
foxriver76 committed Jan 9, 2022
1 parent a7fbad7 commit 1a11f16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ function startAdapter(options) {
reconnectTimeout = null;
}

await adapter.setState('info.connection', false, true);
await adapter.setStateAsync('info.connection', false, true);

adapter.log.info('cleaned everything up...');
callback();
Expand Down Expand Up @@ -930,7 +930,7 @@ async function connect() {
const lightsArr = lights ? Object.keys(lights) : [];
const objs = [];

await adapter.setState('info.connection', true, true);
await adapter.setStateAsync('info.connection', true, true);

noDevices = sensorsArr.length + lightsArr.length;

Expand Down

0 comments on commit 1a11f16

Please sign in to comment.