From 0df966755c5977aafcf9b4a59a289309346fd20d Mon Sep 17 00:00:00 2001 From: TilmanK Date: Wed, 8 Jan 2020 19:29:22 +0100 Subject: [PATCH] Corrected several typos in "Successfully" within log messages (#2697) Co-authored-by: Koen Kanters --- lib/extension/bridgeConfig.js | 2 +- lib/extension/deviceConfigure.js | 2 +- lib/extension/deviceReport.js | 2 +- test/bridgeConfig.test.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/extension/bridgeConfig.js b/lib/extension/bridgeConfig.js index 990cd821..5f4b5839 100644 --- a/lib/extension/bridgeConfig.js +++ b/lib/extension/bridgeConfig.js @@ -365,7 +365,7 @@ class BridgeConfig extends BaseExtension { const result = await this.zigbee.touchlinkFactoryReset(); if (result) { - logger.info('Succesfully factory reset device through Touchlink'); + logger.info('Successfully factory reset device through Touchlink'); } else { logger.warn('Failed to factory reset device through Touchlink'); } diff --git a/lib/extension/deviceConfigure.js b/lib/extension/deviceConfigure.js index 20988098..83f46361 100644 --- a/lib/extension/deviceConfigure.js +++ b/lib/extension/deviceConfigure.js @@ -97,7 +97,7 @@ class DeviceConfigure extends BaseExtension { logger.info(`Configuring '${settingsDevice.friendlyName}'`); try { await mappedDevice.configure(device, this.coordinatorEndpoint); - logger.info(`Succesfully configured '${settingsDevice.friendlyName}'`); + logger.info(`Successfully configured '${settingsDevice.friendlyName}'`); // eslint-disable-next-line device.meta.configured = mappedDevice.meta.configureKey; device.save(); diff --git a/lib/extension/deviceReport.js b/lib/extension/deviceReport.js index 89edb2c3..1ae1be2a 100644 --- a/lib/extension/deviceReport.js +++ b/lib/extension/deviceReport.js @@ -87,7 +87,7 @@ class DeviceReport extends BaseExtension { await ep.bind(cluster, this.coordinatorEndpoint); await ep.configureReporting(cluster, configuration); logger.info( - `Succesfully setup reporting for '${device.ieeeAddr}' - ${ep.ID} - ${cluster}`, + `Successfully setup reporting for '${device.ieeeAddr}' - ${ep.ID} - ${cluster}`, ); } } diff --git a/test/bridgeConfig.test.js b/test/bridgeConfig.test.js index eaf19347..d2e2bd98 100644 --- a/test/bridgeConfig.test.js +++ b/test/bridgeConfig.test.js @@ -394,7 +394,7 @@ describe('Bridge config', () => { MQTT.events.message('zigbee2mqtt/bridge/config/touchlink/factory_reset', ''); await flushPromises(); expect(zigbeeHerdsman.touchlinkFactoryReset).toHaveBeenCalledTimes(1); - expect(logger.info).toHaveBeenCalledWith('Succesfully factory reset device through Touchlink'); + expect(logger.info).toHaveBeenCalledWith('Successfully factory reset device through Touchlink'); }); it('Should allow to touchlink factory reset (FAILS)', async () => {