Return the property id from topic as integer

def get_property_id_from_set_topic(self, topic):
        """Return the property id from topic as integer"""
        topic = topic.decode()
        return int(topic.split("/")[-3].split("_")[-1])