def schedule_rule_pre_hook(rule: dict) -> dict:
    """Copy value for the value key over from alternative names."""

    rule = rule.copy()
    for key in ("v", "temp"):
        if key in rule:
            rule.setdefault("value", rule[key])
            del rule[key]
    return rule