Revert "Dev (#60)"

This reverts commit 44a5c6adbf.
This commit is contained in:
tsightler
2020-12-23 20:18:39 -05:00
parent 44a5c6adbf
commit b29b98911a
9 changed files with 56 additions and 156 deletions

View File

@@ -64,7 +64,8 @@ async function republishDevices() {
debug('Resending device config/state in 30 seconds')
await utils.sleep(30)
for (let device of tuyaDevices) {
device.republish()
device.publishMqtt(device.baseTopic+'status', 'online')
device.init()
}
await utils.sleep(2)
}