mqtt: helper for topics
would be nice to have some helper or a "topic" class to take apart our mqtt topic style.
now:
camera_name = topic_string.split("/")[1]
better:
Topic(topic_string).camera_name
would be nice to have some helper or a "topic" class to take apart our mqtt topic style.
now:
camera_name = topic_string.split("/")[1]
better:
Topic(topic_string).camera_name