def is_off_to_on(running_status_list: list[float]) -> bool: flag = False if running_status_list: if running_status_list[-1] == 1.0: for item in running_status_list: if item == 0.0: flag = True return flag