Skip to content

Commit f337bb6

Browse files
committed
Fix allow replacing dots with _ in topic names
1 parent 03f426c commit f337bb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/publisher/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ class Publisher(ABC):
2121
def __init__(self, config: Configuration):
2222
self.__configuration = config
2323
self.__command_listener = None
24-
self.__topic_root = self.__remove_special_mqtt_characters(config.mqtt_topic)
2524
if config.mqtt_allow_dots_in_topic:
2625
self.__invalid_mqtt_chars = re.compile(r'[+#*$>]')
2726
else:
2827
self.__invalid_mqtt_chars = re.compile(r'[+#*$>.]')
28+
self.__topic_root = self.__remove_special_mqtt_characters(config.mqtt_topic)
2929

3030
async def connect(self):
3131
pass

0 commit comments

Comments
 (0)