Skip to content

Commit

Permalink
remove test prints
Browse files Browse the repository at this point in the history
  • Loading branch information
jziolkowski committed Jan 14, 2024
1 parent 17d6b55 commit f114fb2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tdmgr/GUI/dialogs/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,9 @@ def mqtt_subscribe(self):
custom_pattern.replace("+", f"({MQTT_PATH_REGEX})"), d.p["FullTopic"]
)
if not d.is_default() and not custom_pattern_match:
print(d.p["FullTopic"], 'is not matched by', custom_pattern)
# if pattern is not found then add the device topics to subscription list.
# if the pattern is found, it will be matched without implicit subscription
self.topics += expand_fulltopic(d.p["FullTopic"])
else:
print(d.p["FullTopic"], 'is matched by', custom_pattern)

# passing a list of tuples as recommended by paho
_topics = [("tasmota/discovery/+/config", 0)] + [(topic, 0) for topic in self.topics]
Expand Down

0 comments on commit f114fb2

Please sign in to comment.