mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-10-22 14:01:20 +00:00
Default postfix to empty string. https://github.com/Koenkk/zigbee2mqtt/issues/593
This commit is contained in:
1 parent
c213a96133
commit
dcb75b19d3
2 files changed
+8
-8
No files matched your search
@@ -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