Fix OTA update start on check with / as base_topic prefix. #3010

This commit is contained in:
Koen Kanters committed 2020-02-27 20:33:04 +01:00
1 parent 5c0bb33c1b
commit 63be685201
1 file changed
+1 -1
+1 -1
View File
@@ -75,7 +75,7 @@ class OTAUpdate extends BaseExtension {
}
this.inProgress.add(device.device.ieeeAddr);
const type = topic.split('/')[3];
const type = topic.substring(settings.get().mqtt.base_topic.length).split('/')[3];
if (type === 'check') {
const message = `Checking if update available for '${device.name}'`;
logger.info(message);