def METHOD_NAME(self, action: Action) -> None:
    """Modify state in reaction to an action."""
    if isinstance(action, UpdateCommandAction):
        self._handle_command(action.command)
    elif isinstance(action, ResetTipsAction):
        labware_id = action.labware_id
        for well_name in self._state.tips_by_labware_id[labware_id].keys():
            self._state.tips_by_labware_id[labware_id][
                well_name
            ] = TipRackWellState.CLEAN
    elif isinstance(action, AddPipetteConfigAction):
        config = action.config
        self._state.channels_by_pipette_id[action.pipette_id] = config.channels