mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-21 02:51:11 +00:00
Minor spelling correction (#1522)
* Update devicePublish.test.js * Update devicePublish.js
This commit is contained in:
committed by
Koen Kanters
parent
ee9584121a
commit
f93a3e1c07
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user