mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-28 23:00:55 +00:00
Default postfix to empty string. https://github.com/Koenkk/zigbee2mqtt/issues/593
This commit is contained in:
@@ -53,7 +53,7 @@ class DevicePublish {
|
||||
topic = topic.replace(`/${type}`, '');
|
||||
|
||||
// Check if we have to deal with a postfix.
|
||||
let postfix = null;
|
||||
let postfix = '';
|
||||
if (postfixes.find((p) => topic.endsWith(p))) {
|
||||
postfix = topic.substr(topic.lastIndexOf('/') + 1, topic.length);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user