No update in MQTT Binary Sensor #7478 (#8057)

This commit is contained in:
pezinek authored and Paulus Schoutsen committed 2017-06-17 10:59:18 -07:00
1 parent d24b45054a
commit d796e8db5c
2 files changed
+14 -1

No files matched your search

+1 -1
View File
@@ -646,7 +646,7 @@ def _match_topic(subscription, topic):
if sub_part == "+":
reg_ex_parts.append(r"([^\/]+)")
else:
reg_ex_parts.append(sub_part)
reg_ex_parts.append(re.escape(sub_part))
reg_ex = "^" + (r'\/'.join(reg_ex_parts)) + suffix + "$"