mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-02 01:51:38 +00:00
Fix OTA update start on check with / as base_topic prefix. #3010
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user