From 1a11f160aa5c401d5103fa40ab327a674ccf2dac Mon Sep 17 00:00:00 2001 From: Moritz Heusinger Date: Sun, 9 Jan 2022 19:29:07 +0100 Subject: [PATCH] fix to async --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index c1b07997..2e19d905 100644 --- a/main.js +++ b/main.js @@ -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(); @@ -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;