def METHOD_NAME(self, hours):
    opening_hours = OpeningHours()
    if hours:
        for dt in hours:
            try:
                day = DAYS_NAME[dt.split(":")[0]]
                open_time, close_time = hours.get(dt).split("-")
                opening_hours.add_range(
                    day=day,
                    open_time=open_time.replace(":", "").strip(),
                    close_time=close_time.replace(":", "").strip(),
                    time_format="%H%M",
                )
            except Exception:
                continue
    return opening_hours.as_opening_hours()