Fix touchlink factory reset failing with ''BUFFER' not available' error. #4543

This commit is contained in:
Koen Kanters 2020-10-05 16:21:20 +02:00
parent a7f931b8e3
commit 2fb3cb62f6

View File

@ -452,7 +452,7 @@ class BridgeLegacy extends Extension {
'bridge/log',
stringify({type: `touchlink`, message: 'reset_started', meta: {status: 'started'}}),
);
const result = await this.zigbee.touchlinkFactoryReset();
const result = await this.zigbee.touchlinkFactoryResetFirst();
if (result) {
logger.info('Successfully factory reset device through Touchlink');