Minor spelling correction (#1522)

* Update devicePublish.test.js

* Update devicePublish.js
This commit is contained in:
Andreas Brett
2019-05-12 21:03:27 +02:00
committed by Koen Kanters
parent ee9584121a
commit f93a3e1c07
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ class DevicePublish {
if (entity.type === 'device') {
device = this.zigbee.getDevice(entity.ID);
if (!device) {
logger.error(`Failed to find device with ieeAddr: '${entity.ID}'`);
logger.error(`Failed to find device with ieeeAddr: '${entity.ID}'`);
this.mqtt.log('entity_not_found', entity.ID);
return;
}
+1 -1
View File
@@ -807,7 +807,7 @@ describe('DevicePublish', () => {
expect(parsed.attribute).toBe('foobar');
});
it('Should parse set with ieeAddr topic', () => {
it('Should parse set with ieeeAddr topic', () => {
const topic = 'zigbee2mqtt/0x12345689/set';
const parsed = devicePublish.parseTopic(topic);
expect(parsed.type).toBe('set');