(device: str, program: str)
Updates the given device to the given program.
Updates the given device to the given program.
Updates the given device to the given program .
def set_program(device: str, program: str) -> None:
    """Updates the given device to the given program."""
    current_program = storage.get(f"{device}_program")
    storage.set(f"last_{device}_program", current_program)
    storage.set(f"{device}_program", program)
    _notify_settings_changed(device)
def set_program ( device : str , program : str ) -> None : current_program = storage . get ( f"{device}_program" ) storage . set ( f"last_{device}_program" , current_program ) storage . set ( f"{device}_program" , program ) _notify_settings_changed ( device )