def valid_publish_topic(value):
 return valid_subscribe_topic(value, invalid_chars='#+\x00')

def valid_publish_topic ( value ) : return valid_subscribe_topic ( value , invalid_chars = '#+\x00' )
validate that we can publish using this mqtt topic .