Use ScheduleEntityStateAttribute enum in schedule triggers (#175958)